| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613 |
- // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
- // Package apigateway provides a client for Amazon API Gateway.
- package apigateway
- import (
- "time"
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/aws/aws-sdk-go/aws/request"
- "github.com/aws/aws-sdk-go/private/protocol"
- "github.com/aws/aws-sdk-go/private/protocol/restjson"
- )
- const opCreateApiKey = "CreateApiKey"
- // CreateApiKeyRequest generates a "aws/request.Request" representing the
- // client's request for the CreateApiKey operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CreateApiKey method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the CreateApiKeyRequest method.
- // req, resp := client.CreateApiKeyRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) CreateApiKeyRequest(input *CreateApiKeyInput) (req *request.Request, output *ApiKey) {
- op := &request.Operation{
- Name: opCreateApiKey,
- HTTPMethod: "POST",
- HTTPPath: "/apikeys",
- }
- if input == nil {
- input = &CreateApiKeyInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ApiKey{}
- req.Data = output
- return
- }
- // Create an ApiKey resource.
- func (c *APIGateway) CreateApiKey(input *CreateApiKeyInput) (*ApiKey, error) {
- req, out := c.CreateApiKeyRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateAuthorizer = "CreateAuthorizer"
- // CreateAuthorizerRequest generates a "aws/request.Request" representing the
- // client's request for the CreateAuthorizer operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CreateAuthorizer method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the CreateAuthorizerRequest method.
- // req, resp := client.CreateAuthorizerRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) CreateAuthorizerRequest(input *CreateAuthorizerInput) (req *request.Request, output *Authorizer) {
- op := &request.Operation{
- Name: opCreateAuthorizer,
- HTTPMethod: "POST",
- HTTPPath: "/restapis/{restapi_id}/authorizers",
- }
- if input == nil {
- input = &CreateAuthorizerInput{}
- }
- req = c.newRequest(op, input, output)
- output = &Authorizer{}
- req.Data = output
- return
- }
- // Adds a new Authorizer resource to an existing RestApi resource.
- func (c *APIGateway) CreateAuthorizer(input *CreateAuthorizerInput) (*Authorizer, error) {
- req, out := c.CreateAuthorizerRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateBasePathMapping = "CreateBasePathMapping"
- // CreateBasePathMappingRequest generates a "aws/request.Request" representing the
- // client's request for the CreateBasePathMapping operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CreateBasePathMapping method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the CreateBasePathMappingRequest method.
- // req, resp := client.CreateBasePathMappingRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) CreateBasePathMappingRequest(input *CreateBasePathMappingInput) (req *request.Request, output *BasePathMapping) {
- op := &request.Operation{
- Name: opCreateBasePathMapping,
- HTTPMethod: "POST",
- HTTPPath: "/domainnames/{domain_name}/basepathmappings",
- }
- if input == nil {
- input = &CreateBasePathMappingInput{}
- }
- req = c.newRequest(op, input, output)
- output = &BasePathMapping{}
- req.Data = output
- return
- }
- // Creates a new BasePathMapping resource.
- func (c *APIGateway) CreateBasePathMapping(input *CreateBasePathMappingInput) (*BasePathMapping, error) {
- req, out := c.CreateBasePathMappingRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateDeployment = "CreateDeployment"
- // CreateDeploymentRequest generates a "aws/request.Request" representing the
- // client's request for the CreateDeployment operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CreateDeployment method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the CreateDeploymentRequest method.
- // req, resp := client.CreateDeploymentRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) CreateDeploymentRequest(input *CreateDeploymentInput) (req *request.Request, output *Deployment) {
- op := &request.Operation{
- Name: opCreateDeployment,
- HTTPMethod: "POST",
- HTTPPath: "/restapis/{restapi_id}/deployments",
- }
- if input == nil {
- input = &CreateDeploymentInput{}
- }
- req = c.newRequest(op, input, output)
- output = &Deployment{}
- req.Data = output
- return
- }
- // Creates a Deployment resource, which makes a specified RestApi callable over
- // the internet.
- func (c *APIGateway) CreateDeployment(input *CreateDeploymentInput) (*Deployment, error) {
- req, out := c.CreateDeploymentRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateDomainName = "CreateDomainName"
- // CreateDomainNameRequest generates a "aws/request.Request" representing the
- // client's request for the CreateDomainName operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CreateDomainName method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the CreateDomainNameRequest method.
- // req, resp := client.CreateDomainNameRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) CreateDomainNameRequest(input *CreateDomainNameInput) (req *request.Request, output *DomainName) {
- op := &request.Operation{
- Name: opCreateDomainName,
- HTTPMethod: "POST",
- HTTPPath: "/domainnames",
- }
- if input == nil {
- input = &CreateDomainNameInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DomainName{}
- req.Data = output
- return
- }
- // Creates a new domain name.
- func (c *APIGateway) CreateDomainName(input *CreateDomainNameInput) (*DomainName, error) {
- req, out := c.CreateDomainNameRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateModel = "CreateModel"
- // CreateModelRequest generates a "aws/request.Request" representing the
- // client's request for the CreateModel operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CreateModel method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the CreateModelRequest method.
- // req, resp := client.CreateModelRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) CreateModelRequest(input *CreateModelInput) (req *request.Request, output *Model) {
- op := &request.Operation{
- Name: opCreateModel,
- HTTPMethod: "POST",
- HTTPPath: "/restapis/{restapi_id}/models",
- }
- if input == nil {
- input = &CreateModelInput{}
- }
- req = c.newRequest(op, input, output)
- output = &Model{}
- req.Data = output
- return
- }
- // Adds a new Model resource to an existing RestApi resource.
- func (c *APIGateway) CreateModel(input *CreateModelInput) (*Model, error) {
- req, out := c.CreateModelRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateResource = "CreateResource"
- // CreateResourceRequest generates a "aws/request.Request" representing the
- // client's request for the CreateResource operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CreateResource method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the CreateResourceRequest method.
- // req, resp := client.CreateResourceRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) CreateResourceRequest(input *CreateResourceInput) (req *request.Request, output *Resource) {
- op := &request.Operation{
- Name: opCreateResource,
- HTTPMethod: "POST",
- HTTPPath: "/restapis/{restapi_id}/resources/{parent_id}",
- }
- if input == nil {
- input = &CreateResourceInput{}
- }
- req = c.newRequest(op, input, output)
- output = &Resource{}
- req.Data = output
- return
- }
- // Creates a Resource resource.
- func (c *APIGateway) CreateResource(input *CreateResourceInput) (*Resource, error) {
- req, out := c.CreateResourceRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateRestApi = "CreateRestApi"
- // CreateRestApiRequest generates a "aws/request.Request" representing the
- // client's request for the CreateRestApi operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CreateRestApi method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the CreateRestApiRequest method.
- // req, resp := client.CreateRestApiRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) CreateRestApiRequest(input *CreateRestApiInput) (req *request.Request, output *RestApi) {
- op := &request.Operation{
- Name: opCreateRestApi,
- HTTPMethod: "POST",
- HTTPPath: "/restapis",
- }
- if input == nil {
- input = &CreateRestApiInput{}
- }
- req = c.newRequest(op, input, output)
- output = &RestApi{}
- req.Data = output
- return
- }
- // Creates a new RestApi resource.
- func (c *APIGateway) CreateRestApi(input *CreateRestApiInput) (*RestApi, error) {
- req, out := c.CreateRestApiRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateStage = "CreateStage"
- // CreateStageRequest generates a "aws/request.Request" representing the
- // client's request for the CreateStage operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CreateStage method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the CreateStageRequest method.
- // req, resp := client.CreateStageRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) CreateStageRequest(input *CreateStageInput) (req *request.Request, output *Stage) {
- op := &request.Operation{
- Name: opCreateStage,
- HTTPMethod: "POST",
- HTTPPath: "/restapis/{restapi_id}/stages",
- }
- if input == nil {
- input = &CreateStageInput{}
- }
- req = c.newRequest(op, input, output)
- output = &Stage{}
- req.Data = output
- return
- }
- // Creates a new Stage resource that references a pre-existing Deployment for
- // the API.
- func (c *APIGateway) CreateStage(input *CreateStageInput) (*Stage, error) {
- req, out := c.CreateStageRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteApiKey = "DeleteApiKey"
- // DeleteApiKeyRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteApiKey operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeleteApiKey method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DeleteApiKeyRequest method.
- // req, resp := client.DeleteApiKeyRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) DeleteApiKeyRequest(input *DeleteApiKeyInput) (req *request.Request, output *DeleteApiKeyOutput) {
- op := &request.Operation{
- Name: opDeleteApiKey,
- HTTPMethod: "DELETE",
- HTTPPath: "/apikeys/{api_Key}",
- }
- if input == nil {
- input = &DeleteApiKeyInput{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &DeleteApiKeyOutput{}
- req.Data = output
- return
- }
- // Deletes the ApiKey resource.
- func (c *APIGateway) DeleteApiKey(input *DeleteApiKeyInput) (*DeleteApiKeyOutput, error) {
- req, out := c.DeleteApiKeyRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteAuthorizer = "DeleteAuthorizer"
- // DeleteAuthorizerRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteAuthorizer operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeleteAuthorizer method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DeleteAuthorizerRequest method.
- // req, resp := client.DeleteAuthorizerRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) DeleteAuthorizerRequest(input *DeleteAuthorizerInput) (req *request.Request, output *DeleteAuthorizerOutput) {
- op := &request.Operation{
- Name: opDeleteAuthorizer,
- HTTPMethod: "DELETE",
- HTTPPath: "/restapis/{restapi_id}/authorizers/{authorizer_id}",
- }
- if input == nil {
- input = &DeleteAuthorizerInput{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &DeleteAuthorizerOutput{}
- req.Data = output
- return
- }
- // Deletes an existing Authorizer resource.
- func (c *APIGateway) DeleteAuthorizer(input *DeleteAuthorizerInput) (*DeleteAuthorizerOutput, error) {
- req, out := c.DeleteAuthorizerRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteBasePathMapping = "DeleteBasePathMapping"
- // DeleteBasePathMappingRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteBasePathMapping operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeleteBasePathMapping method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DeleteBasePathMappingRequest method.
- // req, resp := client.DeleteBasePathMappingRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) DeleteBasePathMappingRequest(input *DeleteBasePathMappingInput) (req *request.Request, output *DeleteBasePathMappingOutput) {
- op := &request.Operation{
- Name: opDeleteBasePathMapping,
- HTTPMethod: "DELETE",
- HTTPPath: "/domainnames/{domain_name}/basepathmappings/{base_path}",
- }
- if input == nil {
- input = &DeleteBasePathMappingInput{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &DeleteBasePathMappingOutput{}
- req.Data = output
- return
- }
- // Deletes the BasePathMapping resource.
- func (c *APIGateway) DeleteBasePathMapping(input *DeleteBasePathMappingInput) (*DeleteBasePathMappingOutput, error) {
- req, out := c.DeleteBasePathMappingRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteClientCertificate = "DeleteClientCertificate"
- // DeleteClientCertificateRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteClientCertificate operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeleteClientCertificate method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DeleteClientCertificateRequest method.
- // req, resp := client.DeleteClientCertificateRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) DeleteClientCertificateRequest(input *DeleteClientCertificateInput) (req *request.Request, output *DeleteClientCertificateOutput) {
- op := &request.Operation{
- Name: opDeleteClientCertificate,
- HTTPMethod: "DELETE",
- HTTPPath: "/clientcertificates/{clientcertificate_id}",
- }
- if input == nil {
- input = &DeleteClientCertificateInput{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &DeleteClientCertificateOutput{}
- req.Data = output
- return
- }
- // Deletes the ClientCertificate resource.
- func (c *APIGateway) DeleteClientCertificate(input *DeleteClientCertificateInput) (*DeleteClientCertificateOutput, error) {
- req, out := c.DeleteClientCertificateRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteDeployment = "DeleteDeployment"
- // DeleteDeploymentRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteDeployment operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeleteDeployment method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DeleteDeploymentRequest method.
- // req, resp := client.DeleteDeploymentRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) DeleteDeploymentRequest(input *DeleteDeploymentInput) (req *request.Request, output *DeleteDeploymentOutput) {
- op := &request.Operation{
- Name: opDeleteDeployment,
- HTTPMethod: "DELETE",
- HTTPPath: "/restapis/{restapi_id}/deployments/{deployment_id}",
- }
- if input == nil {
- input = &DeleteDeploymentInput{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &DeleteDeploymentOutput{}
- req.Data = output
- return
- }
- // Deletes a Deployment resource. Deleting a deployment will only succeed if
- // there are no Stage resources associated with it.
- func (c *APIGateway) DeleteDeployment(input *DeleteDeploymentInput) (*DeleteDeploymentOutput, error) {
- req, out := c.DeleteDeploymentRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteDomainName = "DeleteDomainName"
- // DeleteDomainNameRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteDomainName operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeleteDomainName method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DeleteDomainNameRequest method.
- // req, resp := client.DeleteDomainNameRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) DeleteDomainNameRequest(input *DeleteDomainNameInput) (req *request.Request, output *DeleteDomainNameOutput) {
- op := &request.Operation{
- Name: opDeleteDomainName,
- HTTPMethod: "DELETE",
- HTTPPath: "/domainnames/{domain_name}",
- }
- if input == nil {
- input = &DeleteDomainNameInput{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &DeleteDomainNameOutput{}
- req.Data = output
- return
- }
- // Deletes the DomainName resource.
- func (c *APIGateway) DeleteDomainName(input *DeleteDomainNameInput) (*DeleteDomainNameOutput, error) {
- req, out := c.DeleteDomainNameRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteIntegration = "DeleteIntegration"
- // DeleteIntegrationRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteIntegration operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeleteIntegration method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DeleteIntegrationRequest method.
- // req, resp := client.DeleteIntegrationRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) DeleteIntegrationRequest(input *DeleteIntegrationInput) (req *request.Request, output *DeleteIntegrationOutput) {
- op := &request.Operation{
- Name: opDeleteIntegration,
- HTTPMethod: "DELETE",
- HTTPPath: "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/integration",
- }
- if input == nil {
- input = &DeleteIntegrationInput{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &DeleteIntegrationOutput{}
- req.Data = output
- return
- }
- // Represents a delete integration.
- func (c *APIGateway) DeleteIntegration(input *DeleteIntegrationInput) (*DeleteIntegrationOutput, error) {
- req, out := c.DeleteIntegrationRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteIntegrationResponse = "DeleteIntegrationResponse"
- // DeleteIntegrationResponseRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteIntegrationResponse operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeleteIntegrationResponse method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DeleteIntegrationResponseRequest method.
- // req, resp := client.DeleteIntegrationResponseRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) DeleteIntegrationResponseRequest(input *DeleteIntegrationResponseInput) (req *request.Request, output *DeleteIntegrationResponseOutput) {
- op := &request.Operation{
- Name: opDeleteIntegrationResponse,
- HTTPMethod: "DELETE",
- HTTPPath: "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/integration/responses/{status_code}",
- }
- if input == nil {
- input = &DeleteIntegrationResponseInput{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &DeleteIntegrationResponseOutput{}
- req.Data = output
- return
- }
- // Represents a delete integration response.
- func (c *APIGateway) DeleteIntegrationResponse(input *DeleteIntegrationResponseInput) (*DeleteIntegrationResponseOutput, error) {
- req, out := c.DeleteIntegrationResponseRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteMethod = "DeleteMethod"
- // DeleteMethodRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteMethod operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeleteMethod method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DeleteMethodRequest method.
- // req, resp := client.DeleteMethodRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) DeleteMethodRequest(input *DeleteMethodInput) (req *request.Request, output *DeleteMethodOutput) {
- op := &request.Operation{
- Name: opDeleteMethod,
- HTTPMethod: "DELETE",
- HTTPPath: "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}",
- }
- if input == nil {
- input = &DeleteMethodInput{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &DeleteMethodOutput{}
- req.Data = output
- return
- }
- // Deletes an existing Method resource.
- func (c *APIGateway) DeleteMethod(input *DeleteMethodInput) (*DeleteMethodOutput, error) {
- req, out := c.DeleteMethodRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteMethodResponse = "DeleteMethodResponse"
- // DeleteMethodResponseRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteMethodResponse operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeleteMethodResponse method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DeleteMethodResponseRequest method.
- // req, resp := client.DeleteMethodResponseRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) DeleteMethodResponseRequest(input *DeleteMethodResponseInput) (req *request.Request, output *DeleteMethodResponseOutput) {
- op := &request.Operation{
- Name: opDeleteMethodResponse,
- HTTPMethod: "DELETE",
- HTTPPath: "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/responses/{status_code}",
- }
- if input == nil {
- input = &DeleteMethodResponseInput{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &DeleteMethodResponseOutput{}
- req.Data = output
- return
- }
- // Deletes an existing MethodResponse resource.
- func (c *APIGateway) DeleteMethodResponse(input *DeleteMethodResponseInput) (*DeleteMethodResponseOutput, error) {
- req, out := c.DeleteMethodResponseRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteModel = "DeleteModel"
- // DeleteModelRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteModel operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeleteModel method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DeleteModelRequest method.
- // req, resp := client.DeleteModelRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) DeleteModelRequest(input *DeleteModelInput) (req *request.Request, output *DeleteModelOutput) {
- op := &request.Operation{
- Name: opDeleteModel,
- HTTPMethod: "DELETE",
- HTTPPath: "/restapis/{restapi_id}/models/{model_name}",
- }
- if input == nil {
- input = &DeleteModelInput{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &DeleteModelOutput{}
- req.Data = output
- return
- }
- // Deletes a model.
- func (c *APIGateway) DeleteModel(input *DeleteModelInput) (*DeleteModelOutput, error) {
- req, out := c.DeleteModelRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteResource = "DeleteResource"
- // DeleteResourceRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteResource operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeleteResource method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DeleteResourceRequest method.
- // req, resp := client.DeleteResourceRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) DeleteResourceRequest(input *DeleteResourceInput) (req *request.Request, output *DeleteResourceOutput) {
- op := &request.Operation{
- Name: opDeleteResource,
- HTTPMethod: "DELETE",
- HTTPPath: "/restapis/{restapi_id}/resources/{resource_id}",
- }
- if input == nil {
- input = &DeleteResourceInput{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &DeleteResourceOutput{}
- req.Data = output
- return
- }
- // Deletes a Resource resource.
- func (c *APIGateway) DeleteResource(input *DeleteResourceInput) (*DeleteResourceOutput, error) {
- req, out := c.DeleteResourceRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteRestApi = "DeleteRestApi"
- // DeleteRestApiRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteRestApi operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeleteRestApi method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DeleteRestApiRequest method.
- // req, resp := client.DeleteRestApiRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) DeleteRestApiRequest(input *DeleteRestApiInput) (req *request.Request, output *DeleteRestApiOutput) {
- op := &request.Operation{
- Name: opDeleteRestApi,
- HTTPMethod: "DELETE",
- HTTPPath: "/restapis/{restapi_id}",
- }
- if input == nil {
- input = &DeleteRestApiInput{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &DeleteRestApiOutput{}
- req.Data = output
- return
- }
- // Deletes the specified API.
- func (c *APIGateway) DeleteRestApi(input *DeleteRestApiInput) (*DeleteRestApiOutput, error) {
- req, out := c.DeleteRestApiRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteStage = "DeleteStage"
- // DeleteStageRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteStage operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeleteStage method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DeleteStageRequest method.
- // req, resp := client.DeleteStageRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) DeleteStageRequest(input *DeleteStageInput) (req *request.Request, output *DeleteStageOutput) {
- op := &request.Operation{
- Name: opDeleteStage,
- HTTPMethod: "DELETE",
- HTTPPath: "/restapis/{restapi_id}/stages/{stage_name}",
- }
- if input == nil {
- input = &DeleteStageInput{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &DeleteStageOutput{}
- req.Data = output
- return
- }
- // Deletes a Stage resource.
- func (c *APIGateway) DeleteStage(input *DeleteStageInput) (*DeleteStageOutput, error) {
- req, out := c.DeleteStageRequest(input)
- err := req.Send()
- return out, err
- }
- const opFlushStageAuthorizersCache = "FlushStageAuthorizersCache"
- // FlushStageAuthorizersCacheRequest generates a "aws/request.Request" representing the
- // client's request for the FlushStageAuthorizersCache operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the FlushStageAuthorizersCache method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the FlushStageAuthorizersCacheRequest method.
- // req, resp := client.FlushStageAuthorizersCacheRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) FlushStageAuthorizersCacheRequest(input *FlushStageAuthorizersCacheInput) (req *request.Request, output *FlushStageAuthorizersCacheOutput) {
- op := &request.Operation{
- Name: opFlushStageAuthorizersCache,
- HTTPMethod: "DELETE",
- HTTPPath: "/restapis/{restapi_id}/stages/{stage_name}/cache/authorizers",
- }
- if input == nil {
- input = &FlushStageAuthorizersCacheInput{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &FlushStageAuthorizersCacheOutput{}
- req.Data = output
- return
- }
- // Flushes all authorizer cache entries on a stage.
- func (c *APIGateway) FlushStageAuthorizersCache(input *FlushStageAuthorizersCacheInput) (*FlushStageAuthorizersCacheOutput, error) {
- req, out := c.FlushStageAuthorizersCacheRequest(input)
- err := req.Send()
- return out, err
- }
- const opFlushStageCache = "FlushStageCache"
- // FlushStageCacheRequest generates a "aws/request.Request" representing the
- // client's request for the FlushStageCache operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the FlushStageCache method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the FlushStageCacheRequest method.
- // req, resp := client.FlushStageCacheRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) FlushStageCacheRequest(input *FlushStageCacheInput) (req *request.Request, output *FlushStageCacheOutput) {
- op := &request.Operation{
- Name: opFlushStageCache,
- HTTPMethod: "DELETE",
- HTTPPath: "/restapis/{restapi_id}/stages/{stage_name}/cache/data",
- }
- if input == nil {
- input = &FlushStageCacheInput{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &FlushStageCacheOutput{}
- req.Data = output
- return
- }
- // Flushes a stage's cache.
- func (c *APIGateway) FlushStageCache(input *FlushStageCacheInput) (*FlushStageCacheOutput, error) {
- req, out := c.FlushStageCacheRequest(input)
- err := req.Send()
- return out, err
- }
- const opGenerateClientCertificate = "GenerateClientCertificate"
- // GenerateClientCertificateRequest generates a "aws/request.Request" representing the
- // client's request for the GenerateClientCertificate operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GenerateClientCertificate method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GenerateClientCertificateRequest method.
- // req, resp := client.GenerateClientCertificateRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) GenerateClientCertificateRequest(input *GenerateClientCertificateInput) (req *request.Request, output *ClientCertificate) {
- op := &request.Operation{
- Name: opGenerateClientCertificate,
- HTTPMethod: "POST",
- HTTPPath: "/clientcertificates",
- }
- if input == nil {
- input = &GenerateClientCertificateInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ClientCertificate{}
- req.Data = output
- return
- }
- // Generates a ClientCertificate resource.
- func (c *APIGateway) GenerateClientCertificate(input *GenerateClientCertificateInput) (*ClientCertificate, error) {
- req, out := c.GenerateClientCertificateRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetAccount = "GetAccount"
- // GetAccountRequest generates a "aws/request.Request" representing the
- // client's request for the GetAccount operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetAccount method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetAccountRequest method.
- // req, resp := client.GetAccountRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) GetAccountRequest(input *GetAccountInput) (req *request.Request, output *Account) {
- op := &request.Operation{
- Name: opGetAccount,
- HTTPMethod: "GET",
- HTTPPath: "/account",
- }
- if input == nil {
- input = &GetAccountInput{}
- }
- req = c.newRequest(op, input, output)
- output = &Account{}
- req.Data = output
- return
- }
- // Gets information about the current Account resource.
- func (c *APIGateway) GetAccount(input *GetAccountInput) (*Account, error) {
- req, out := c.GetAccountRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetApiKey = "GetApiKey"
- // GetApiKeyRequest generates a "aws/request.Request" representing the
- // client's request for the GetApiKey operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetApiKey method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetApiKeyRequest method.
- // req, resp := client.GetApiKeyRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) GetApiKeyRequest(input *GetApiKeyInput) (req *request.Request, output *ApiKey) {
- op := &request.Operation{
- Name: opGetApiKey,
- HTTPMethod: "GET",
- HTTPPath: "/apikeys/{api_Key}",
- }
- if input == nil {
- input = &GetApiKeyInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ApiKey{}
- req.Data = output
- return
- }
- // Gets information about the current ApiKey resource.
- func (c *APIGateway) GetApiKey(input *GetApiKeyInput) (*ApiKey, error) {
- req, out := c.GetApiKeyRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetApiKeys = "GetApiKeys"
- // GetApiKeysRequest generates a "aws/request.Request" representing the
- // client's request for the GetApiKeys operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetApiKeys method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetApiKeysRequest method.
- // req, resp := client.GetApiKeysRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) GetApiKeysRequest(input *GetApiKeysInput) (req *request.Request, output *GetApiKeysOutput) {
- op := &request.Operation{
- Name: opGetApiKeys,
- HTTPMethod: "GET",
- HTTPPath: "/apikeys",
- Paginator: &request.Paginator{
- InputTokens: []string{"position"},
- OutputTokens: []string{"position"},
- LimitToken: "limit",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &GetApiKeysInput{}
- }
- req = c.newRequest(op, input, output)
- output = &GetApiKeysOutput{}
- req.Data = output
- return
- }
- // Gets information about the current ApiKeys resource.
- func (c *APIGateway) GetApiKeys(input *GetApiKeysInput) (*GetApiKeysOutput, error) {
- req, out := c.GetApiKeysRequest(input)
- err := req.Send()
- return out, err
- }
- // GetApiKeysPages iterates over the pages of a GetApiKeys operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See GetApiKeys method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a GetApiKeys operation.
- // pageNum := 0
- // err := client.GetApiKeysPages(params,
- // func(page *GetApiKeysOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *APIGateway) GetApiKeysPages(input *GetApiKeysInput, fn func(p *GetApiKeysOutput, lastPage bool) (shouldContinue bool)) error {
- page, _ := c.GetApiKeysRequest(input)
- page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
- return page.EachPage(func(p interface{}, lastPage bool) bool {
- return fn(p.(*GetApiKeysOutput), lastPage)
- })
- }
- const opGetAuthorizer = "GetAuthorizer"
- // GetAuthorizerRequest generates a "aws/request.Request" representing the
- // client's request for the GetAuthorizer operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetAuthorizer method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetAuthorizerRequest method.
- // req, resp := client.GetAuthorizerRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) GetAuthorizerRequest(input *GetAuthorizerInput) (req *request.Request, output *Authorizer) {
- op := &request.Operation{
- Name: opGetAuthorizer,
- HTTPMethod: "GET",
- HTTPPath: "/restapis/{restapi_id}/authorizers/{authorizer_id}",
- }
- if input == nil {
- input = &GetAuthorizerInput{}
- }
- req = c.newRequest(op, input, output)
- output = &Authorizer{}
- req.Data = output
- return
- }
- // Describe an existing Authorizer resource.
- func (c *APIGateway) GetAuthorizer(input *GetAuthorizerInput) (*Authorizer, error) {
- req, out := c.GetAuthorizerRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetAuthorizers = "GetAuthorizers"
- // GetAuthorizersRequest generates a "aws/request.Request" representing the
- // client's request for the GetAuthorizers operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetAuthorizers method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetAuthorizersRequest method.
- // req, resp := client.GetAuthorizersRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) GetAuthorizersRequest(input *GetAuthorizersInput) (req *request.Request, output *GetAuthorizersOutput) {
- op := &request.Operation{
- Name: opGetAuthorizers,
- HTTPMethod: "GET",
- HTTPPath: "/restapis/{restapi_id}/authorizers",
- }
- if input == nil {
- input = &GetAuthorizersInput{}
- }
- req = c.newRequest(op, input, output)
- output = &GetAuthorizersOutput{}
- req.Data = output
- return
- }
- // Describe an existing Authorizers resource.
- func (c *APIGateway) GetAuthorizers(input *GetAuthorizersInput) (*GetAuthorizersOutput, error) {
- req, out := c.GetAuthorizersRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetBasePathMapping = "GetBasePathMapping"
- // GetBasePathMappingRequest generates a "aws/request.Request" representing the
- // client's request for the GetBasePathMapping operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetBasePathMapping method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetBasePathMappingRequest method.
- // req, resp := client.GetBasePathMappingRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) GetBasePathMappingRequest(input *GetBasePathMappingInput) (req *request.Request, output *BasePathMapping) {
- op := &request.Operation{
- Name: opGetBasePathMapping,
- HTTPMethod: "GET",
- HTTPPath: "/domainnames/{domain_name}/basepathmappings/{base_path}",
- }
- if input == nil {
- input = &GetBasePathMappingInput{}
- }
- req = c.newRequest(op, input, output)
- output = &BasePathMapping{}
- req.Data = output
- return
- }
- // Describe a BasePathMapping resource.
- func (c *APIGateway) GetBasePathMapping(input *GetBasePathMappingInput) (*BasePathMapping, error) {
- req, out := c.GetBasePathMappingRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetBasePathMappings = "GetBasePathMappings"
- // GetBasePathMappingsRequest generates a "aws/request.Request" representing the
- // client's request for the GetBasePathMappings operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetBasePathMappings method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetBasePathMappingsRequest method.
- // req, resp := client.GetBasePathMappingsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) GetBasePathMappingsRequest(input *GetBasePathMappingsInput) (req *request.Request, output *GetBasePathMappingsOutput) {
- op := &request.Operation{
- Name: opGetBasePathMappings,
- HTTPMethod: "GET",
- HTTPPath: "/domainnames/{domain_name}/basepathmappings",
- Paginator: &request.Paginator{
- InputTokens: []string{"position"},
- OutputTokens: []string{"position"},
- LimitToken: "limit",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &GetBasePathMappingsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &GetBasePathMappingsOutput{}
- req.Data = output
- return
- }
- // Represents a collection of BasePathMapping resources.
- func (c *APIGateway) GetBasePathMappings(input *GetBasePathMappingsInput) (*GetBasePathMappingsOutput, error) {
- req, out := c.GetBasePathMappingsRequest(input)
- err := req.Send()
- return out, err
- }
- // GetBasePathMappingsPages iterates over the pages of a GetBasePathMappings operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See GetBasePathMappings method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a GetBasePathMappings operation.
- // pageNum := 0
- // err := client.GetBasePathMappingsPages(params,
- // func(page *GetBasePathMappingsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *APIGateway) GetBasePathMappingsPages(input *GetBasePathMappingsInput, fn func(p *GetBasePathMappingsOutput, lastPage bool) (shouldContinue bool)) error {
- page, _ := c.GetBasePathMappingsRequest(input)
- page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
- return page.EachPage(func(p interface{}, lastPage bool) bool {
- return fn(p.(*GetBasePathMappingsOutput), lastPage)
- })
- }
- const opGetClientCertificate = "GetClientCertificate"
- // GetClientCertificateRequest generates a "aws/request.Request" representing the
- // client's request for the GetClientCertificate operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetClientCertificate method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetClientCertificateRequest method.
- // req, resp := client.GetClientCertificateRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) GetClientCertificateRequest(input *GetClientCertificateInput) (req *request.Request, output *ClientCertificate) {
- op := &request.Operation{
- Name: opGetClientCertificate,
- HTTPMethod: "GET",
- HTTPPath: "/clientcertificates/{clientcertificate_id}",
- }
- if input == nil {
- input = &GetClientCertificateInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ClientCertificate{}
- req.Data = output
- return
- }
- // Gets information about the current ClientCertificate resource.
- func (c *APIGateway) GetClientCertificate(input *GetClientCertificateInput) (*ClientCertificate, error) {
- req, out := c.GetClientCertificateRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetClientCertificates = "GetClientCertificates"
- // GetClientCertificatesRequest generates a "aws/request.Request" representing the
- // client's request for the GetClientCertificates operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetClientCertificates method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetClientCertificatesRequest method.
- // req, resp := client.GetClientCertificatesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) GetClientCertificatesRequest(input *GetClientCertificatesInput) (req *request.Request, output *GetClientCertificatesOutput) {
- op := &request.Operation{
- Name: opGetClientCertificates,
- HTTPMethod: "GET",
- HTTPPath: "/clientcertificates",
- Paginator: &request.Paginator{
- InputTokens: []string{"position"},
- OutputTokens: []string{"position"},
- LimitToken: "limit",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &GetClientCertificatesInput{}
- }
- req = c.newRequest(op, input, output)
- output = &GetClientCertificatesOutput{}
- req.Data = output
- return
- }
- // Gets a collection of ClientCertificate resources.
- func (c *APIGateway) GetClientCertificates(input *GetClientCertificatesInput) (*GetClientCertificatesOutput, error) {
- req, out := c.GetClientCertificatesRequest(input)
- err := req.Send()
- return out, err
- }
- // GetClientCertificatesPages iterates over the pages of a GetClientCertificates operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See GetClientCertificates method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a GetClientCertificates operation.
- // pageNum := 0
- // err := client.GetClientCertificatesPages(params,
- // func(page *GetClientCertificatesOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *APIGateway) GetClientCertificatesPages(input *GetClientCertificatesInput, fn func(p *GetClientCertificatesOutput, lastPage bool) (shouldContinue bool)) error {
- page, _ := c.GetClientCertificatesRequest(input)
- page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
- return page.EachPage(func(p interface{}, lastPage bool) bool {
- return fn(p.(*GetClientCertificatesOutput), lastPage)
- })
- }
- const opGetDeployment = "GetDeployment"
- // GetDeploymentRequest generates a "aws/request.Request" representing the
- // client's request for the GetDeployment operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetDeployment method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetDeploymentRequest method.
- // req, resp := client.GetDeploymentRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) GetDeploymentRequest(input *GetDeploymentInput) (req *request.Request, output *Deployment) {
- op := &request.Operation{
- Name: opGetDeployment,
- HTTPMethod: "GET",
- HTTPPath: "/restapis/{restapi_id}/deployments/{deployment_id}",
- }
- if input == nil {
- input = &GetDeploymentInput{}
- }
- req = c.newRequest(op, input, output)
- output = &Deployment{}
- req.Data = output
- return
- }
- // Gets information about a Deployment resource.
- func (c *APIGateway) GetDeployment(input *GetDeploymentInput) (*Deployment, error) {
- req, out := c.GetDeploymentRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetDeployments = "GetDeployments"
- // GetDeploymentsRequest generates a "aws/request.Request" representing the
- // client's request for the GetDeployments operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetDeployments method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetDeploymentsRequest method.
- // req, resp := client.GetDeploymentsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) GetDeploymentsRequest(input *GetDeploymentsInput) (req *request.Request, output *GetDeploymentsOutput) {
- op := &request.Operation{
- Name: opGetDeployments,
- HTTPMethod: "GET",
- HTTPPath: "/restapis/{restapi_id}/deployments",
- Paginator: &request.Paginator{
- InputTokens: []string{"position"},
- OutputTokens: []string{"position"},
- LimitToken: "limit",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &GetDeploymentsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &GetDeploymentsOutput{}
- req.Data = output
- return
- }
- // Gets information about a Deployments collection.
- func (c *APIGateway) GetDeployments(input *GetDeploymentsInput) (*GetDeploymentsOutput, error) {
- req, out := c.GetDeploymentsRequest(input)
- err := req.Send()
- return out, err
- }
- // GetDeploymentsPages iterates over the pages of a GetDeployments operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See GetDeployments method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a GetDeployments operation.
- // pageNum := 0
- // err := client.GetDeploymentsPages(params,
- // func(page *GetDeploymentsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *APIGateway) GetDeploymentsPages(input *GetDeploymentsInput, fn func(p *GetDeploymentsOutput, lastPage bool) (shouldContinue bool)) error {
- page, _ := c.GetDeploymentsRequest(input)
- page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
- return page.EachPage(func(p interface{}, lastPage bool) bool {
- return fn(p.(*GetDeploymentsOutput), lastPage)
- })
- }
- const opGetDomainName = "GetDomainName"
- // GetDomainNameRequest generates a "aws/request.Request" representing the
- // client's request for the GetDomainName operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetDomainName method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetDomainNameRequest method.
- // req, resp := client.GetDomainNameRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) GetDomainNameRequest(input *GetDomainNameInput) (req *request.Request, output *DomainName) {
- op := &request.Operation{
- Name: opGetDomainName,
- HTTPMethod: "GET",
- HTTPPath: "/domainnames/{domain_name}",
- }
- if input == nil {
- input = &GetDomainNameInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DomainName{}
- req.Data = output
- return
- }
- // Represents a domain name that is contained in a simpler, more intuitive URL
- // that can be called.
- func (c *APIGateway) GetDomainName(input *GetDomainNameInput) (*DomainName, error) {
- req, out := c.GetDomainNameRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetDomainNames = "GetDomainNames"
- // GetDomainNamesRequest generates a "aws/request.Request" representing the
- // client's request for the GetDomainNames operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetDomainNames method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetDomainNamesRequest method.
- // req, resp := client.GetDomainNamesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) GetDomainNamesRequest(input *GetDomainNamesInput) (req *request.Request, output *GetDomainNamesOutput) {
- op := &request.Operation{
- Name: opGetDomainNames,
- HTTPMethod: "GET",
- HTTPPath: "/domainnames",
- Paginator: &request.Paginator{
- InputTokens: []string{"position"},
- OutputTokens: []string{"position"},
- LimitToken: "limit",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &GetDomainNamesInput{}
- }
- req = c.newRequest(op, input, output)
- output = &GetDomainNamesOutput{}
- req.Data = output
- return
- }
- // Represents a collection of DomainName resources.
- func (c *APIGateway) GetDomainNames(input *GetDomainNamesInput) (*GetDomainNamesOutput, error) {
- req, out := c.GetDomainNamesRequest(input)
- err := req.Send()
- return out, err
- }
- // GetDomainNamesPages iterates over the pages of a GetDomainNames operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See GetDomainNames method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a GetDomainNames operation.
- // pageNum := 0
- // err := client.GetDomainNamesPages(params,
- // func(page *GetDomainNamesOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *APIGateway) GetDomainNamesPages(input *GetDomainNamesInput, fn func(p *GetDomainNamesOutput, lastPage bool) (shouldContinue bool)) error {
- page, _ := c.GetDomainNamesRequest(input)
- page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
- return page.EachPage(func(p interface{}, lastPage bool) bool {
- return fn(p.(*GetDomainNamesOutput), lastPage)
- })
- }
- const opGetExport = "GetExport"
- // GetExportRequest generates a "aws/request.Request" representing the
- // client's request for the GetExport operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetExport method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetExportRequest method.
- // req, resp := client.GetExportRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) GetExportRequest(input *GetExportInput) (req *request.Request, output *GetExportOutput) {
- op := &request.Operation{
- Name: opGetExport,
- HTTPMethod: "GET",
- HTTPPath: "/restapis/{restapi_id}/stages/{stage_name}/exports/{export_type}",
- }
- if input == nil {
- input = &GetExportInput{}
- }
- req = c.newRequest(op, input, output)
- output = &GetExportOutput{}
- req.Data = output
- return
- }
- // Exports a deployed version of a RestApi in a specified format.
- func (c *APIGateway) GetExport(input *GetExportInput) (*GetExportOutput, error) {
- req, out := c.GetExportRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetIntegration = "GetIntegration"
- // GetIntegrationRequest generates a "aws/request.Request" representing the
- // client's request for the GetIntegration operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetIntegration method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetIntegrationRequest method.
- // req, resp := client.GetIntegrationRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) GetIntegrationRequest(input *GetIntegrationInput) (req *request.Request, output *Integration) {
- op := &request.Operation{
- Name: opGetIntegration,
- HTTPMethod: "GET",
- HTTPPath: "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/integration",
- }
- if input == nil {
- input = &GetIntegrationInput{}
- }
- req = c.newRequest(op, input, output)
- output = &Integration{}
- req.Data = output
- return
- }
- // Represents a get integration.
- func (c *APIGateway) GetIntegration(input *GetIntegrationInput) (*Integration, error) {
- req, out := c.GetIntegrationRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetIntegrationResponse = "GetIntegrationResponse"
- // GetIntegrationResponseRequest generates a "aws/request.Request" representing the
- // client's request for the GetIntegrationResponse operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetIntegrationResponse method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetIntegrationResponseRequest method.
- // req, resp := client.GetIntegrationResponseRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) GetIntegrationResponseRequest(input *GetIntegrationResponseInput) (req *request.Request, output *IntegrationResponse) {
- op := &request.Operation{
- Name: opGetIntegrationResponse,
- HTTPMethod: "GET",
- HTTPPath: "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/integration/responses/{status_code}",
- }
- if input == nil {
- input = &GetIntegrationResponseInput{}
- }
- req = c.newRequest(op, input, output)
- output = &IntegrationResponse{}
- req.Data = output
- return
- }
- // Represents a get integration response.
- func (c *APIGateway) GetIntegrationResponse(input *GetIntegrationResponseInput) (*IntegrationResponse, error) {
- req, out := c.GetIntegrationResponseRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetMethod = "GetMethod"
- // GetMethodRequest generates a "aws/request.Request" representing the
- // client's request for the GetMethod operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetMethod method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetMethodRequest method.
- // req, resp := client.GetMethodRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) GetMethodRequest(input *GetMethodInput) (req *request.Request, output *Method) {
- op := &request.Operation{
- Name: opGetMethod,
- HTTPMethod: "GET",
- HTTPPath: "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}",
- }
- if input == nil {
- input = &GetMethodInput{}
- }
- req = c.newRequest(op, input, output)
- output = &Method{}
- req.Data = output
- return
- }
- // Describe an existing Method resource.
- func (c *APIGateway) GetMethod(input *GetMethodInput) (*Method, error) {
- req, out := c.GetMethodRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetMethodResponse = "GetMethodResponse"
- // GetMethodResponseRequest generates a "aws/request.Request" representing the
- // client's request for the GetMethodResponse operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetMethodResponse method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetMethodResponseRequest method.
- // req, resp := client.GetMethodResponseRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) GetMethodResponseRequest(input *GetMethodResponseInput) (req *request.Request, output *MethodResponse) {
- op := &request.Operation{
- Name: opGetMethodResponse,
- HTTPMethod: "GET",
- HTTPPath: "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/responses/{status_code}",
- }
- if input == nil {
- input = &GetMethodResponseInput{}
- }
- req = c.newRequest(op, input, output)
- output = &MethodResponse{}
- req.Data = output
- return
- }
- // Describes a MethodResponse resource.
- func (c *APIGateway) GetMethodResponse(input *GetMethodResponseInput) (*MethodResponse, error) {
- req, out := c.GetMethodResponseRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetModel = "GetModel"
- // GetModelRequest generates a "aws/request.Request" representing the
- // client's request for the GetModel operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetModel method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetModelRequest method.
- // req, resp := client.GetModelRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) GetModelRequest(input *GetModelInput) (req *request.Request, output *Model) {
- op := &request.Operation{
- Name: opGetModel,
- HTTPMethod: "GET",
- HTTPPath: "/restapis/{restapi_id}/models/{model_name}",
- }
- if input == nil {
- input = &GetModelInput{}
- }
- req = c.newRequest(op, input, output)
- output = &Model{}
- req.Data = output
- return
- }
- // Describes an existing model defined for a RestApi resource.
- func (c *APIGateway) GetModel(input *GetModelInput) (*Model, error) {
- req, out := c.GetModelRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetModelTemplate = "GetModelTemplate"
- // GetModelTemplateRequest generates a "aws/request.Request" representing the
- // client's request for the GetModelTemplate operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetModelTemplate method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetModelTemplateRequest method.
- // req, resp := client.GetModelTemplateRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) GetModelTemplateRequest(input *GetModelTemplateInput) (req *request.Request, output *GetModelTemplateOutput) {
- op := &request.Operation{
- Name: opGetModelTemplate,
- HTTPMethod: "GET",
- HTTPPath: "/restapis/{restapi_id}/models/{model_name}/default_template",
- }
- if input == nil {
- input = &GetModelTemplateInput{}
- }
- req = c.newRequest(op, input, output)
- output = &GetModelTemplateOutput{}
- req.Data = output
- return
- }
- // Generates a sample mapping template that can be used to transform a payload
- // into the structure of a model.
- func (c *APIGateway) GetModelTemplate(input *GetModelTemplateInput) (*GetModelTemplateOutput, error) {
- req, out := c.GetModelTemplateRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetModels = "GetModels"
- // GetModelsRequest generates a "aws/request.Request" representing the
- // client's request for the GetModels operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetModels method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetModelsRequest method.
- // req, resp := client.GetModelsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) GetModelsRequest(input *GetModelsInput) (req *request.Request, output *GetModelsOutput) {
- op := &request.Operation{
- Name: opGetModels,
- HTTPMethod: "GET",
- HTTPPath: "/restapis/{restapi_id}/models",
- Paginator: &request.Paginator{
- InputTokens: []string{"position"},
- OutputTokens: []string{"position"},
- LimitToken: "limit",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &GetModelsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &GetModelsOutput{}
- req.Data = output
- return
- }
- // Describes existing Models defined for a RestApi resource.
- func (c *APIGateway) GetModels(input *GetModelsInput) (*GetModelsOutput, error) {
- req, out := c.GetModelsRequest(input)
- err := req.Send()
- return out, err
- }
- // GetModelsPages iterates over the pages of a GetModels operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See GetModels method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a GetModels operation.
- // pageNum := 0
- // err := client.GetModelsPages(params,
- // func(page *GetModelsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *APIGateway) GetModelsPages(input *GetModelsInput, fn func(p *GetModelsOutput, lastPage bool) (shouldContinue bool)) error {
- page, _ := c.GetModelsRequest(input)
- page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
- return page.EachPage(func(p interface{}, lastPage bool) bool {
- return fn(p.(*GetModelsOutput), lastPage)
- })
- }
- const opGetResource = "GetResource"
- // GetResourceRequest generates a "aws/request.Request" representing the
- // client's request for the GetResource operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetResource method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetResourceRequest method.
- // req, resp := client.GetResourceRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) GetResourceRequest(input *GetResourceInput) (req *request.Request, output *Resource) {
- op := &request.Operation{
- Name: opGetResource,
- HTTPMethod: "GET",
- HTTPPath: "/restapis/{restapi_id}/resources/{resource_id}",
- }
- if input == nil {
- input = &GetResourceInput{}
- }
- req = c.newRequest(op, input, output)
- output = &Resource{}
- req.Data = output
- return
- }
- // Lists information about a resource.
- func (c *APIGateway) GetResource(input *GetResourceInput) (*Resource, error) {
- req, out := c.GetResourceRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetResources = "GetResources"
- // GetResourcesRequest generates a "aws/request.Request" representing the
- // client's request for the GetResources operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetResources method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetResourcesRequest method.
- // req, resp := client.GetResourcesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) GetResourcesRequest(input *GetResourcesInput) (req *request.Request, output *GetResourcesOutput) {
- op := &request.Operation{
- Name: opGetResources,
- HTTPMethod: "GET",
- HTTPPath: "/restapis/{restapi_id}/resources",
- Paginator: &request.Paginator{
- InputTokens: []string{"position"},
- OutputTokens: []string{"position"},
- LimitToken: "limit",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &GetResourcesInput{}
- }
- req = c.newRequest(op, input, output)
- output = &GetResourcesOutput{}
- req.Data = output
- return
- }
- // Lists information about a collection of Resource resources.
- func (c *APIGateway) GetResources(input *GetResourcesInput) (*GetResourcesOutput, error) {
- req, out := c.GetResourcesRequest(input)
- err := req.Send()
- return out, err
- }
- // GetResourcesPages iterates over the pages of a GetResources operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See GetResources method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a GetResources operation.
- // pageNum := 0
- // err := client.GetResourcesPages(params,
- // func(page *GetResourcesOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *APIGateway) GetResourcesPages(input *GetResourcesInput, fn func(p *GetResourcesOutput, lastPage bool) (shouldContinue bool)) error {
- page, _ := c.GetResourcesRequest(input)
- page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
- return page.EachPage(func(p interface{}, lastPage bool) bool {
- return fn(p.(*GetResourcesOutput), lastPage)
- })
- }
- const opGetRestApi = "GetRestApi"
- // GetRestApiRequest generates a "aws/request.Request" representing the
- // client's request for the GetRestApi operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetRestApi method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetRestApiRequest method.
- // req, resp := client.GetRestApiRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) GetRestApiRequest(input *GetRestApiInput) (req *request.Request, output *RestApi) {
- op := &request.Operation{
- Name: opGetRestApi,
- HTTPMethod: "GET",
- HTTPPath: "/restapis/{restapi_id}",
- }
- if input == nil {
- input = &GetRestApiInput{}
- }
- req = c.newRequest(op, input, output)
- output = &RestApi{}
- req.Data = output
- return
- }
- // Lists the RestApi resource in the collection.
- func (c *APIGateway) GetRestApi(input *GetRestApiInput) (*RestApi, error) {
- req, out := c.GetRestApiRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetRestApis = "GetRestApis"
- // GetRestApisRequest generates a "aws/request.Request" representing the
- // client's request for the GetRestApis operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetRestApis method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetRestApisRequest method.
- // req, resp := client.GetRestApisRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) GetRestApisRequest(input *GetRestApisInput) (req *request.Request, output *GetRestApisOutput) {
- op := &request.Operation{
- Name: opGetRestApis,
- HTTPMethod: "GET",
- HTTPPath: "/restapis",
- Paginator: &request.Paginator{
- InputTokens: []string{"position"},
- OutputTokens: []string{"position"},
- LimitToken: "limit",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &GetRestApisInput{}
- }
- req = c.newRequest(op, input, output)
- output = &GetRestApisOutput{}
- req.Data = output
- return
- }
- // Lists the RestApis resources for your collection.
- func (c *APIGateway) GetRestApis(input *GetRestApisInput) (*GetRestApisOutput, error) {
- req, out := c.GetRestApisRequest(input)
- err := req.Send()
- return out, err
- }
- // GetRestApisPages iterates over the pages of a GetRestApis operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See GetRestApis method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a GetRestApis operation.
- // pageNum := 0
- // err := client.GetRestApisPages(params,
- // func(page *GetRestApisOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *APIGateway) GetRestApisPages(input *GetRestApisInput, fn func(p *GetRestApisOutput, lastPage bool) (shouldContinue bool)) error {
- page, _ := c.GetRestApisRequest(input)
- page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
- return page.EachPage(func(p interface{}, lastPage bool) bool {
- return fn(p.(*GetRestApisOutput), lastPage)
- })
- }
- const opGetSdk = "GetSdk"
- // GetSdkRequest generates a "aws/request.Request" representing the
- // client's request for the GetSdk operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetSdk method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetSdkRequest method.
- // req, resp := client.GetSdkRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) GetSdkRequest(input *GetSdkInput) (req *request.Request, output *GetSdkOutput) {
- op := &request.Operation{
- Name: opGetSdk,
- HTTPMethod: "GET",
- HTTPPath: "/restapis/{restapi_id}/stages/{stage_name}/sdks/{sdk_type}",
- }
- if input == nil {
- input = &GetSdkInput{}
- }
- req = c.newRequest(op, input, output)
- output = &GetSdkOutput{}
- req.Data = output
- return
- }
- // Generates a client SDK for a RestApi and Stage.
- func (c *APIGateway) GetSdk(input *GetSdkInput) (*GetSdkOutput, error) {
- req, out := c.GetSdkRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetStage = "GetStage"
- // GetStageRequest generates a "aws/request.Request" representing the
- // client's request for the GetStage operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetStage method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetStageRequest method.
- // req, resp := client.GetStageRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) GetStageRequest(input *GetStageInput) (req *request.Request, output *Stage) {
- op := &request.Operation{
- Name: opGetStage,
- HTTPMethod: "GET",
- HTTPPath: "/restapis/{restapi_id}/stages/{stage_name}",
- }
- if input == nil {
- input = &GetStageInput{}
- }
- req = c.newRequest(op, input, output)
- output = &Stage{}
- req.Data = output
- return
- }
- // Gets information about a Stage resource.
- func (c *APIGateway) GetStage(input *GetStageInput) (*Stage, error) {
- req, out := c.GetStageRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetStages = "GetStages"
- // GetStagesRequest generates a "aws/request.Request" representing the
- // client's request for the GetStages operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetStages method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetStagesRequest method.
- // req, resp := client.GetStagesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) GetStagesRequest(input *GetStagesInput) (req *request.Request, output *GetStagesOutput) {
- op := &request.Operation{
- Name: opGetStages,
- HTTPMethod: "GET",
- HTTPPath: "/restapis/{restapi_id}/stages",
- }
- if input == nil {
- input = &GetStagesInput{}
- }
- req = c.newRequest(op, input, output)
- output = &GetStagesOutput{}
- req.Data = output
- return
- }
- // Gets information about one or more Stage resources.
- func (c *APIGateway) GetStages(input *GetStagesInput) (*GetStagesOutput, error) {
- req, out := c.GetStagesRequest(input)
- err := req.Send()
- return out, err
- }
- const opImportRestApi = "ImportRestApi"
- // ImportRestApiRequest generates a "aws/request.Request" representing the
- // client's request for the ImportRestApi operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ImportRestApi method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ImportRestApiRequest method.
- // req, resp := client.ImportRestApiRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) ImportRestApiRequest(input *ImportRestApiInput) (req *request.Request, output *RestApi) {
- op := &request.Operation{
- Name: opImportRestApi,
- HTTPMethod: "POST",
- HTTPPath: "/restapis?mode=import",
- }
- if input == nil {
- input = &ImportRestApiInput{}
- }
- req = c.newRequest(op, input, output)
- output = &RestApi{}
- req.Data = output
- return
- }
- // A feature of the Amazon API Gateway control service for creating a new API
- // from an external API definition file.
- func (c *APIGateway) ImportRestApi(input *ImportRestApiInput) (*RestApi, error) {
- req, out := c.ImportRestApiRequest(input)
- err := req.Send()
- return out, err
- }
- const opPutIntegration = "PutIntegration"
- // PutIntegrationRequest generates a "aws/request.Request" representing the
- // client's request for the PutIntegration operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the PutIntegration method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the PutIntegrationRequest method.
- // req, resp := client.PutIntegrationRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) PutIntegrationRequest(input *PutIntegrationInput) (req *request.Request, output *Integration) {
- op := &request.Operation{
- Name: opPutIntegration,
- HTTPMethod: "PUT",
- HTTPPath: "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/integration",
- }
- if input == nil {
- input = &PutIntegrationInput{}
- }
- req = c.newRequest(op, input, output)
- output = &Integration{}
- req.Data = output
- return
- }
- // Represents a put integration.
- func (c *APIGateway) PutIntegration(input *PutIntegrationInput) (*Integration, error) {
- req, out := c.PutIntegrationRequest(input)
- err := req.Send()
- return out, err
- }
- const opPutIntegrationResponse = "PutIntegrationResponse"
- // PutIntegrationResponseRequest generates a "aws/request.Request" representing the
- // client's request for the PutIntegrationResponse operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the PutIntegrationResponse method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the PutIntegrationResponseRequest method.
- // req, resp := client.PutIntegrationResponseRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) PutIntegrationResponseRequest(input *PutIntegrationResponseInput) (req *request.Request, output *IntegrationResponse) {
- op := &request.Operation{
- Name: opPutIntegrationResponse,
- HTTPMethod: "PUT",
- HTTPPath: "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/integration/responses/{status_code}",
- }
- if input == nil {
- input = &PutIntegrationResponseInput{}
- }
- req = c.newRequest(op, input, output)
- output = &IntegrationResponse{}
- req.Data = output
- return
- }
- // Represents a put integration.
- func (c *APIGateway) PutIntegrationResponse(input *PutIntegrationResponseInput) (*IntegrationResponse, error) {
- req, out := c.PutIntegrationResponseRequest(input)
- err := req.Send()
- return out, err
- }
- const opPutMethod = "PutMethod"
- // PutMethodRequest generates a "aws/request.Request" representing the
- // client's request for the PutMethod operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the PutMethod method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the PutMethodRequest method.
- // req, resp := client.PutMethodRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) PutMethodRequest(input *PutMethodInput) (req *request.Request, output *Method) {
- op := &request.Operation{
- Name: opPutMethod,
- HTTPMethod: "PUT",
- HTTPPath: "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}",
- }
- if input == nil {
- input = &PutMethodInput{}
- }
- req = c.newRequest(op, input, output)
- output = &Method{}
- req.Data = output
- return
- }
- // Add a method to an existing Resource resource.
- func (c *APIGateway) PutMethod(input *PutMethodInput) (*Method, error) {
- req, out := c.PutMethodRequest(input)
- err := req.Send()
- return out, err
- }
- const opPutMethodResponse = "PutMethodResponse"
- // PutMethodResponseRequest generates a "aws/request.Request" representing the
- // client's request for the PutMethodResponse operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the PutMethodResponse method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the PutMethodResponseRequest method.
- // req, resp := client.PutMethodResponseRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) PutMethodResponseRequest(input *PutMethodResponseInput) (req *request.Request, output *MethodResponse) {
- op := &request.Operation{
- Name: opPutMethodResponse,
- HTTPMethod: "PUT",
- HTTPPath: "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/responses/{status_code}",
- }
- if input == nil {
- input = &PutMethodResponseInput{}
- }
- req = c.newRequest(op, input, output)
- output = &MethodResponse{}
- req.Data = output
- return
- }
- // Adds a MethodResponse to an existing Method resource.
- func (c *APIGateway) PutMethodResponse(input *PutMethodResponseInput) (*MethodResponse, error) {
- req, out := c.PutMethodResponseRequest(input)
- err := req.Send()
- return out, err
- }
- const opPutRestApi = "PutRestApi"
- // PutRestApiRequest generates a "aws/request.Request" representing the
- // client's request for the PutRestApi operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the PutRestApi method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the PutRestApiRequest method.
- // req, resp := client.PutRestApiRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) PutRestApiRequest(input *PutRestApiInput) (req *request.Request, output *RestApi) {
- op := &request.Operation{
- Name: opPutRestApi,
- HTTPMethod: "PUT",
- HTTPPath: "/restapis/{restapi_id}",
- }
- if input == nil {
- input = &PutRestApiInput{}
- }
- req = c.newRequest(op, input, output)
- output = &RestApi{}
- req.Data = output
- return
- }
- // A feature of the Amazon API Gateway control service for updating an existing
- // API with an input of external API definitions. The update can take the form
- // of merging the supplied definition into the existing API or overwriting the
- // existing API.
- func (c *APIGateway) PutRestApi(input *PutRestApiInput) (*RestApi, error) {
- req, out := c.PutRestApiRequest(input)
- err := req.Send()
- return out, err
- }
- const opTestInvokeAuthorizer = "TestInvokeAuthorizer"
- // TestInvokeAuthorizerRequest generates a "aws/request.Request" representing the
- // client's request for the TestInvokeAuthorizer operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the TestInvokeAuthorizer method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the TestInvokeAuthorizerRequest method.
- // req, resp := client.TestInvokeAuthorizerRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) TestInvokeAuthorizerRequest(input *TestInvokeAuthorizerInput) (req *request.Request, output *TestInvokeAuthorizerOutput) {
- op := &request.Operation{
- Name: opTestInvokeAuthorizer,
- HTTPMethod: "POST",
- HTTPPath: "/restapis/{restapi_id}/authorizers/{authorizer_id}",
- }
- if input == nil {
- input = &TestInvokeAuthorizerInput{}
- }
- req = c.newRequest(op, input, output)
- output = &TestInvokeAuthorizerOutput{}
- req.Data = output
- return
- }
- // Simulate the execution of an Authorizer in your RestApi with headers, parameters,
- // and an incoming request body.
- func (c *APIGateway) TestInvokeAuthorizer(input *TestInvokeAuthorizerInput) (*TestInvokeAuthorizerOutput, error) {
- req, out := c.TestInvokeAuthorizerRequest(input)
- err := req.Send()
- return out, err
- }
- const opTestInvokeMethod = "TestInvokeMethod"
- // TestInvokeMethodRequest generates a "aws/request.Request" representing the
- // client's request for the TestInvokeMethod operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the TestInvokeMethod method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the TestInvokeMethodRequest method.
- // req, resp := client.TestInvokeMethodRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) TestInvokeMethodRequest(input *TestInvokeMethodInput) (req *request.Request, output *TestInvokeMethodOutput) {
- op := &request.Operation{
- Name: opTestInvokeMethod,
- HTTPMethod: "POST",
- HTTPPath: "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}",
- }
- if input == nil {
- input = &TestInvokeMethodInput{}
- }
- req = c.newRequest(op, input, output)
- output = &TestInvokeMethodOutput{}
- req.Data = output
- return
- }
- // Simulate the execution of a Method in your RestApi with headers, parameters,
- // and an incoming request body.
- func (c *APIGateway) TestInvokeMethod(input *TestInvokeMethodInput) (*TestInvokeMethodOutput, error) {
- req, out := c.TestInvokeMethodRequest(input)
- err := req.Send()
- return out, err
- }
- const opUpdateAccount = "UpdateAccount"
- // UpdateAccountRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateAccount operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the UpdateAccount method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the UpdateAccountRequest method.
- // req, resp := client.UpdateAccountRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) UpdateAccountRequest(input *UpdateAccountInput) (req *request.Request, output *Account) {
- op := &request.Operation{
- Name: opUpdateAccount,
- HTTPMethod: "PATCH",
- HTTPPath: "/account",
- }
- if input == nil {
- input = &UpdateAccountInput{}
- }
- req = c.newRequest(op, input, output)
- output = &Account{}
- req.Data = output
- return
- }
- // Changes information about the current Account resource.
- func (c *APIGateway) UpdateAccount(input *UpdateAccountInput) (*Account, error) {
- req, out := c.UpdateAccountRequest(input)
- err := req.Send()
- return out, err
- }
- const opUpdateApiKey = "UpdateApiKey"
- // UpdateApiKeyRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateApiKey operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the UpdateApiKey method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the UpdateApiKeyRequest method.
- // req, resp := client.UpdateApiKeyRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) UpdateApiKeyRequest(input *UpdateApiKeyInput) (req *request.Request, output *ApiKey) {
- op := &request.Operation{
- Name: opUpdateApiKey,
- HTTPMethod: "PATCH",
- HTTPPath: "/apikeys/{api_Key}",
- }
- if input == nil {
- input = &UpdateApiKeyInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ApiKey{}
- req.Data = output
- return
- }
- // Changes information about an ApiKey resource.
- func (c *APIGateway) UpdateApiKey(input *UpdateApiKeyInput) (*ApiKey, error) {
- req, out := c.UpdateApiKeyRequest(input)
- err := req.Send()
- return out, err
- }
- const opUpdateAuthorizer = "UpdateAuthorizer"
- // UpdateAuthorizerRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateAuthorizer operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the UpdateAuthorizer method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the UpdateAuthorizerRequest method.
- // req, resp := client.UpdateAuthorizerRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) UpdateAuthorizerRequest(input *UpdateAuthorizerInput) (req *request.Request, output *Authorizer) {
- op := &request.Operation{
- Name: opUpdateAuthorizer,
- HTTPMethod: "PATCH",
- HTTPPath: "/restapis/{restapi_id}/authorizers/{authorizer_id}",
- }
- if input == nil {
- input = &UpdateAuthorizerInput{}
- }
- req = c.newRequest(op, input, output)
- output = &Authorizer{}
- req.Data = output
- return
- }
- // Updates an existing Authorizer resource.
- func (c *APIGateway) UpdateAuthorizer(input *UpdateAuthorizerInput) (*Authorizer, error) {
- req, out := c.UpdateAuthorizerRequest(input)
- err := req.Send()
- return out, err
- }
- const opUpdateBasePathMapping = "UpdateBasePathMapping"
- // UpdateBasePathMappingRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateBasePathMapping operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the UpdateBasePathMapping method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the UpdateBasePathMappingRequest method.
- // req, resp := client.UpdateBasePathMappingRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) UpdateBasePathMappingRequest(input *UpdateBasePathMappingInput) (req *request.Request, output *BasePathMapping) {
- op := &request.Operation{
- Name: opUpdateBasePathMapping,
- HTTPMethod: "PATCH",
- HTTPPath: "/domainnames/{domain_name}/basepathmappings/{base_path}",
- }
- if input == nil {
- input = &UpdateBasePathMappingInput{}
- }
- req = c.newRequest(op, input, output)
- output = &BasePathMapping{}
- req.Data = output
- return
- }
- // Changes information about the BasePathMapping resource.
- func (c *APIGateway) UpdateBasePathMapping(input *UpdateBasePathMappingInput) (*BasePathMapping, error) {
- req, out := c.UpdateBasePathMappingRequest(input)
- err := req.Send()
- return out, err
- }
- const opUpdateClientCertificate = "UpdateClientCertificate"
- // UpdateClientCertificateRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateClientCertificate operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the UpdateClientCertificate method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the UpdateClientCertificateRequest method.
- // req, resp := client.UpdateClientCertificateRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) UpdateClientCertificateRequest(input *UpdateClientCertificateInput) (req *request.Request, output *ClientCertificate) {
- op := &request.Operation{
- Name: opUpdateClientCertificate,
- HTTPMethod: "PATCH",
- HTTPPath: "/clientcertificates/{clientcertificate_id}",
- }
- if input == nil {
- input = &UpdateClientCertificateInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ClientCertificate{}
- req.Data = output
- return
- }
- // Changes information about an ClientCertificate resource.
- func (c *APIGateway) UpdateClientCertificate(input *UpdateClientCertificateInput) (*ClientCertificate, error) {
- req, out := c.UpdateClientCertificateRequest(input)
- err := req.Send()
- return out, err
- }
- const opUpdateDeployment = "UpdateDeployment"
- // UpdateDeploymentRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateDeployment operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the UpdateDeployment method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the UpdateDeploymentRequest method.
- // req, resp := client.UpdateDeploymentRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) UpdateDeploymentRequest(input *UpdateDeploymentInput) (req *request.Request, output *Deployment) {
- op := &request.Operation{
- Name: opUpdateDeployment,
- HTTPMethod: "PATCH",
- HTTPPath: "/restapis/{restapi_id}/deployments/{deployment_id}",
- }
- if input == nil {
- input = &UpdateDeploymentInput{}
- }
- req = c.newRequest(op, input, output)
- output = &Deployment{}
- req.Data = output
- return
- }
- // Changes information about a Deployment resource.
- func (c *APIGateway) UpdateDeployment(input *UpdateDeploymentInput) (*Deployment, error) {
- req, out := c.UpdateDeploymentRequest(input)
- err := req.Send()
- return out, err
- }
- const opUpdateDomainName = "UpdateDomainName"
- // UpdateDomainNameRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateDomainName operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the UpdateDomainName method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the UpdateDomainNameRequest method.
- // req, resp := client.UpdateDomainNameRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) UpdateDomainNameRequest(input *UpdateDomainNameInput) (req *request.Request, output *DomainName) {
- op := &request.Operation{
- Name: opUpdateDomainName,
- HTTPMethod: "PATCH",
- HTTPPath: "/domainnames/{domain_name}",
- }
- if input == nil {
- input = &UpdateDomainNameInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DomainName{}
- req.Data = output
- return
- }
- // Changes information about the DomainName resource.
- func (c *APIGateway) UpdateDomainName(input *UpdateDomainNameInput) (*DomainName, error) {
- req, out := c.UpdateDomainNameRequest(input)
- err := req.Send()
- return out, err
- }
- const opUpdateIntegration = "UpdateIntegration"
- // UpdateIntegrationRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateIntegration operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the UpdateIntegration method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the UpdateIntegrationRequest method.
- // req, resp := client.UpdateIntegrationRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) UpdateIntegrationRequest(input *UpdateIntegrationInput) (req *request.Request, output *Integration) {
- op := &request.Operation{
- Name: opUpdateIntegration,
- HTTPMethod: "PATCH",
- HTTPPath: "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/integration",
- }
- if input == nil {
- input = &UpdateIntegrationInput{}
- }
- req = c.newRequest(op, input, output)
- output = &Integration{}
- req.Data = output
- return
- }
- // Represents an update integration.
- func (c *APIGateway) UpdateIntegration(input *UpdateIntegrationInput) (*Integration, error) {
- req, out := c.UpdateIntegrationRequest(input)
- err := req.Send()
- return out, err
- }
- const opUpdateIntegrationResponse = "UpdateIntegrationResponse"
- // UpdateIntegrationResponseRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateIntegrationResponse operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the UpdateIntegrationResponse method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the UpdateIntegrationResponseRequest method.
- // req, resp := client.UpdateIntegrationResponseRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) UpdateIntegrationResponseRequest(input *UpdateIntegrationResponseInput) (req *request.Request, output *IntegrationResponse) {
- op := &request.Operation{
- Name: opUpdateIntegrationResponse,
- HTTPMethod: "PATCH",
- HTTPPath: "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/integration/responses/{status_code}",
- }
- if input == nil {
- input = &UpdateIntegrationResponseInput{}
- }
- req = c.newRequest(op, input, output)
- output = &IntegrationResponse{}
- req.Data = output
- return
- }
- // Represents an update integration response.
- func (c *APIGateway) UpdateIntegrationResponse(input *UpdateIntegrationResponseInput) (*IntegrationResponse, error) {
- req, out := c.UpdateIntegrationResponseRequest(input)
- err := req.Send()
- return out, err
- }
- const opUpdateMethod = "UpdateMethod"
- // UpdateMethodRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateMethod operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the UpdateMethod method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the UpdateMethodRequest method.
- // req, resp := client.UpdateMethodRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) UpdateMethodRequest(input *UpdateMethodInput) (req *request.Request, output *Method) {
- op := &request.Operation{
- Name: opUpdateMethod,
- HTTPMethod: "PATCH",
- HTTPPath: "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}",
- }
- if input == nil {
- input = &UpdateMethodInput{}
- }
- req = c.newRequest(op, input, output)
- output = &Method{}
- req.Data = output
- return
- }
- // Updates an existing Method resource.
- func (c *APIGateway) UpdateMethod(input *UpdateMethodInput) (*Method, error) {
- req, out := c.UpdateMethodRequest(input)
- err := req.Send()
- return out, err
- }
- const opUpdateMethodResponse = "UpdateMethodResponse"
- // UpdateMethodResponseRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateMethodResponse operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the UpdateMethodResponse method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the UpdateMethodResponseRequest method.
- // req, resp := client.UpdateMethodResponseRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) UpdateMethodResponseRequest(input *UpdateMethodResponseInput) (req *request.Request, output *MethodResponse) {
- op := &request.Operation{
- Name: opUpdateMethodResponse,
- HTTPMethod: "PATCH",
- HTTPPath: "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/responses/{status_code}",
- }
- if input == nil {
- input = &UpdateMethodResponseInput{}
- }
- req = c.newRequest(op, input, output)
- output = &MethodResponse{}
- req.Data = output
- return
- }
- // Updates an existing MethodResponse resource.
- func (c *APIGateway) UpdateMethodResponse(input *UpdateMethodResponseInput) (*MethodResponse, error) {
- req, out := c.UpdateMethodResponseRequest(input)
- err := req.Send()
- return out, err
- }
- const opUpdateModel = "UpdateModel"
- // UpdateModelRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateModel operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the UpdateModel method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the UpdateModelRequest method.
- // req, resp := client.UpdateModelRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) UpdateModelRequest(input *UpdateModelInput) (req *request.Request, output *Model) {
- op := &request.Operation{
- Name: opUpdateModel,
- HTTPMethod: "PATCH",
- HTTPPath: "/restapis/{restapi_id}/models/{model_name}",
- }
- if input == nil {
- input = &UpdateModelInput{}
- }
- req = c.newRequest(op, input, output)
- output = &Model{}
- req.Data = output
- return
- }
- // Changes information about a model.
- func (c *APIGateway) UpdateModel(input *UpdateModelInput) (*Model, error) {
- req, out := c.UpdateModelRequest(input)
- err := req.Send()
- return out, err
- }
- const opUpdateResource = "UpdateResource"
- // UpdateResourceRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateResource operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the UpdateResource method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the UpdateResourceRequest method.
- // req, resp := client.UpdateResourceRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) UpdateResourceRequest(input *UpdateResourceInput) (req *request.Request, output *Resource) {
- op := &request.Operation{
- Name: opUpdateResource,
- HTTPMethod: "PATCH",
- HTTPPath: "/restapis/{restapi_id}/resources/{resource_id}",
- }
- if input == nil {
- input = &UpdateResourceInput{}
- }
- req = c.newRequest(op, input, output)
- output = &Resource{}
- req.Data = output
- return
- }
- // Changes information about a Resource resource.
- func (c *APIGateway) UpdateResource(input *UpdateResourceInput) (*Resource, error) {
- req, out := c.UpdateResourceRequest(input)
- err := req.Send()
- return out, err
- }
- const opUpdateRestApi = "UpdateRestApi"
- // UpdateRestApiRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateRestApi operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the UpdateRestApi method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the UpdateRestApiRequest method.
- // req, resp := client.UpdateRestApiRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) UpdateRestApiRequest(input *UpdateRestApiInput) (req *request.Request, output *RestApi) {
- op := &request.Operation{
- Name: opUpdateRestApi,
- HTTPMethod: "PATCH",
- HTTPPath: "/restapis/{restapi_id}",
- }
- if input == nil {
- input = &UpdateRestApiInput{}
- }
- req = c.newRequest(op, input, output)
- output = &RestApi{}
- req.Data = output
- return
- }
- // Changes information about the specified API.
- func (c *APIGateway) UpdateRestApi(input *UpdateRestApiInput) (*RestApi, error) {
- req, out := c.UpdateRestApiRequest(input)
- err := req.Send()
- return out, err
- }
- const opUpdateStage = "UpdateStage"
- // UpdateStageRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateStage operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the UpdateStage method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the UpdateStageRequest method.
- // req, resp := client.UpdateStageRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) UpdateStageRequest(input *UpdateStageInput) (req *request.Request, output *Stage) {
- op := &request.Operation{
- Name: opUpdateStage,
- HTTPMethod: "PATCH",
- HTTPPath: "/restapis/{restapi_id}/stages/{stage_name}",
- }
- if input == nil {
- input = &UpdateStageInput{}
- }
- req = c.newRequest(op, input, output)
- output = &Stage{}
- req.Data = output
- return
- }
- // Changes information about a Stage resource.
- func (c *APIGateway) UpdateStage(input *UpdateStageInput) (*Stage, error) {
- req, out := c.UpdateStageRequest(input)
- err := req.Send()
- return out, err
- }
- // Represents an AWS account that is associated with Amazon API Gateway.
- type Account struct {
- _ struct{} `type:"structure"`
- // Specifies the Amazon resource name (ARN) of an Amazon CloudWatch role for
- // the current Account resource.
- CloudwatchRoleArn *string `locationName:"cloudwatchRoleArn" type:"string"`
- // Specifies the application programming interface (API) throttle settings for
- // the current Account resource.
- ThrottleSettings *ThrottleSettings `locationName:"throttleSettings" type:"structure"`
- }
- // String returns the string representation
- func (s Account) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Account) GoString() string {
- return s.String()
- }
- // A resource that can be distributed to callers for executing Method resources
- // that require an API key. API keys can be mapped to any Stage on any RestApi,
- // which indicates that the callers with the API key can make requests to that
- // stage.
- type ApiKey struct {
- _ struct{} `type:"structure"`
- // The date when the API Key was created, in ISO 8601 format (http://www.iso.org/iso/home/standards/iso8601.htm"
- // target="_blank).
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
- // The description of the API Key.
- Description *string `locationName:"description" type:"string"`
- // Specifies whether the API Key can be used by callers.
- Enabled *bool `locationName:"enabled" type:"boolean"`
- // The identifier of the API Key.
- Id *string `locationName:"id" type:"string"`
- // When the API Key was last updated, in ISO 8601 format.
- LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix"`
- // The name of the API Key.
- Name *string `locationName:"name" type:"string"`
- // A list of Stage resources that are associated with the ApiKey resource.
- StageKeys []*string `locationName:"stageKeys" type:"list"`
- }
- // String returns the string representation
- func (s ApiKey) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ApiKey) GoString() string {
- return s.String()
- }
- // Represents an authorization layer for methods. If enabled on a method, API
- // Gateway will activate the authorizer when a client calls the method.
- type Authorizer struct {
- _ struct{} `type:"structure"`
- // Optional customer-defined field, used in Swagger imports/exports. Has no
- // functional impact.
- AuthType *string `locationName:"authType" type:"string"`
- // Specifies the credentials required for the authorizer, if any. Two options
- // are available. To specify an IAM Role for Amazon API Gateway to assume, use
- // the role's Amazon Resource Name (ARN). To use resource-based permissions
- // on the Lambda function, specify null.
- AuthorizerCredentials *string `locationName:"authorizerCredentials" type:"string"`
- // The TTL in seconds of cached authorizer results. If greater than 0, API Gateway
- // will cache authorizer responses. If this field is not set, the default value
- // is 300. The maximum value is 3600, or 1 hour.
- AuthorizerResultTtlInSeconds *int64 `locationName:"authorizerResultTtlInSeconds" type:"integer"`
- // [Required] Specifies the authorizer's Uniform Resource Identifier (URI).
- // For TOKEN authorizers, this must be a well-formed Lambda function URI. The
- // URI should be of the form arn:aws:apigateway:{region}:lambda:path/{service_api}.
- // Region is used to determine the right endpoint. In this case, path is used
- // to indicate that the remaining substring in the URI should be treated as
- // the path to the resource, including the initial /. For Lambda functions,
- // this is usually of the form /2015-03-31/functions/[FunctionARN]/invocations
- AuthorizerUri *string `locationName:"authorizerUri" type:"string"`
- // The identifier for the authorizer resource.
- Id *string `locationName:"id" type:"string"`
- // [Required] The source of the identity in an incoming request. For TOKEN authorizers,
- // this value is a mapping expression with the same syntax as integration parameter
- // mappings. The only valid source for tokens is 'header', so the expression
- // should match 'method.request.header.[headerName]'. The value of the header
- // '[headerName]' will be interpreted as the incoming token.
- IdentitySource *string `locationName:"identitySource" type:"string"`
- // A validation expression for the incoming identity. For TOKEN authorizers,
- // this value should be a regular expression. The incoming token from the client
- // is matched against this expression, and will proceed if the token matches.
- // If the token doesn't match, the client receives a 401 Unauthorized response.
- IdentityValidationExpression *string `locationName:"identityValidationExpression" type:"string"`
- // [Required] The name of the authorizer.
- Name *string `locationName:"name" type:"string"`
- ProviderARNs []*string `locationName:"providerARNs" type:"list"`
- // [Required] The type of the authorizer. Currently, the only valid type is
- // TOKEN.
- Type *string `locationName:"type" type:"string" enum:"AuthorizerType"`
- }
- // String returns the string representation
- func (s Authorizer) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Authorizer) GoString() string {
- return s.String()
- }
- // Represents the base path that callers of the API that must provide as part
- // of the URL after the domain name.
- type BasePathMapping struct {
- _ struct{} `type:"structure"`
- // The base path name that callers of the API must provide as part of the URL
- // after the domain name.
- BasePath *string `locationName:"basePath" type:"string"`
- // The name of the API.
- RestApiId *string `locationName:"restApiId" type:"string"`
- // The name of the API's stage.
- Stage *string `locationName:"stage" type:"string"`
- }
- // String returns the string representation
- func (s BasePathMapping) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s BasePathMapping) GoString() string {
- return s.String()
- }
- // Represents a Client Certificate used to configure client-side SSL authentication
- // while sending requests to the integration endpoint.
- type ClientCertificate struct {
- _ struct{} `type:"structure"`
- // The identifier of the Client Certificate.
- ClientCertificateId *string `locationName:"clientCertificateId" type:"string"`
- // The date when the Client Certificate was created, in ISO 8601 format (http://www.iso.org/iso/home/standards/iso8601.htm"
- // target="_blank).
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
- // The description of the Client Certificate.
- Description *string `locationName:"description" type:"string"`
- // The date when the Client Certificate will expire, in ISO 8601 format (http://www.iso.org/iso/home/standards/iso8601.htm"
- // target="_blank).
- ExpirationDate *time.Time `locationName:"expirationDate" type:"timestamp" timestampFormat:"unix"`
- // The PEM-encoded public key of the Client Certificate, that can be used to
- // configure certificate authentication in the integration endpoint .
- PemEncodedCertificate *string `locationName:"pemEncodedCertificate" type:"string"`
- }
- // String returns the string representation
- func (s ClientCertificate) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ClientCertificate) GoString() string {
- return s.String()
- }
- // Request to create an ApiKey resource.
- type CreateApiKeyInput struct {
- _ struct{} `type:"structure"`
- // The description of the ApiKey.
- Description *string `locationName:"description" type:"string"`
- // Specifies whether the ApiKey can be used by callers.
- Enabled *bool `locationName:"enabled" type:"boolean"`
- // The name of the ApiKey.
- Name *string `locationName:"name" type:"string"`
- // Specifies whether the ApiKey can be used by callers.
- StageKeys []*StageKey `locationName:"stageKeys" type:"list"`
- }
- // String returns the string representation
- func (s CreateApiKeyInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateApiKeyInput) GoString() string {
- return s.String()
- }
- // Request to add a new Authorizer to an existing RestApi resource.
- type CreateAuthorizerInput struct {
- _ struct{} `type:"structure"`
- // Optional customer-defined field, used in Swagger imports/exports. Has no
- // functional impact.
- AuthType *string `locationName:"authType" type:"string"`
- // Specifies the credentials required for the authorizer, if any.
- AuthorizerCredentials *string `locationName:"authorizerCredentials" type:"string"`
- // The TTL of cached authorizer results.
- AuthorizerResultTtlInSeconds *int64 `locationName:"authorizerResultTtlInSeconds" type:"integer"`
- // [Required] Specifies the authorizer's Uniform Resource Identifier (URI).
- AuthorizerUri *string `locationName:"authorizerUri" type:"string"`
- // [Required] The source of the identity in an incoming request.
- IdentitySource *string `locationName:"identitySource" type:"string" required:"true"`
- // A validation expression for the incoming identity.
- IdentityValidationExpression *string `locationName:"identityValidationExpression" type:"string"`
- // [Required] The name of the authorizer.
- Name *string `locationName:"name" type:"string" required:"true"`
- ProviderARNs []*string `locationName:"providerARNs" type:"list"`
- // The RestApi identifier under which the Authorizer will be created.
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- // [Required] The type of the authorizer.
- Type *string `locationName:"type" type:"string" required:"true" enum:"AuthorizerType"`
- }
- // String returns the string representation
- func (s CreateAuthorizerInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateAuthorizerInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateAuthorizerInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateAuthorizerInput"}
- if s.IdentitySource == nil {
- invalidParams.Add(request.NewErrParamRequired("IdentitySource"))
- }
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if s.Type == nil {
- invalidParams.Add(request.NewErrParamRequired("Type"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Requests Amazon API Gateway to create a new BasePathMapping resource.
- type CreateBasePathMappingInput struct {
- _ struct{} `type:"structure"`
- // The base path name that callers of the API must provide as part of the URL
- // after the domain name. This value must be unique for all of the mappings
- // across a single API. Leave this blank if you do not want callers to specify
- // a base path name after the domain name.
- BasePath *string `locationName:"basePath" type:"string"`
- // The domain name of the BasePathMapping resource to create.
- DomainName *string `location:"uri" locationName:"domain_name" type:"string" required:"true"`
- // The name of the API that you want to apply this mapping to.
- RestApiId *string `locationName:"restApiId" type:"string" required:"true"`
- // The name of the API's stage that you want to use for this mapping. Leave
- // this blank if you do not want callers to explicitly specify the stage name
- // after any base path name.
- Stage *string `locationName:"stage" type:"string"`
- }
- // String returns the string representation
- func (s CreateBasePathMappingInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateBasePathMappingInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateBasePathMappingInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateBasePathMappingInput"}
- if s.DomainName == nil {
- invalidParams.Add(request.NewErrParamRequired("DomainName"))
- }
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Requests Amazon API Gateway to create a Deployment resource.
- type CreateDeploymentInput struct {
- _ struct{} `type:"structure"`
- // Enables a cache cluster for the Stage resource specified in the input.
- CacheClusterEnabled *bool `locationName:"cacheClusterEnabled" type:"boolean"`
- // Specifies the cache cluster size for the Stage resource specified in the
- // input, if a cache cluster is enabled.
- CacheClusterSize *string `locationName:"cacheClusterSize" type:"string" enum:"CacheClusterSize"`
- // The description for the Deployment resource to create.
- Description *string `locationName:"description" type:"string"`
- // The RestApi resource identifier for the Deployment resource to create.
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- // The description of the Stage resource for the Deployment resource to create.
- StageDescription *string `locationName:"stageDescription" type:"string"`
- // The name of the Stage resource for the Deployment resource to create.
- StageName *string `locationName:"stageName" type:"string" required:"true"`
- // A map that defines the stage variables for the Stage resource that is associated
- // with the new deployment. Variable names can have alphanumeric characters,
- // and the values must match [A-Za-z0-9-._~:/?#&=,]+.
- Variables map[string]*string `locationName:"variables" type:"map"`
- }
- // String returns the string representation
- func (s CreateDeploymentInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateDeploymentInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateDeploymentInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateDeploymentInput"}
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if s.StageName == nil {
- invalidParams.Add(request.NewErrParamRequired("StageName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A request to create a new domain name.
- type CreateDomainNameInput struct {
- _ struct{} `type:"structure"`
- // The body of the server certificate provided by your certificate authority.
- CertificateBody *string `locationName:"certificateBody" type:"string" required:"true"`
- // The intermediate certificates and optionally the root certificate, one after
- // the other without any blank lines. If you include the root certificate, your
- // certificate chain must start with intermediate certificates and end with
- // the root certificate. Use the intermediate certificates that were provided
- // by your certificate authority. Do not include any intermediaries that are
- // not in the chain of trust path.
- CertificateChain *string `locationName:"certificateChain" type:"string" required:"true"`
- // The name of the certificate.
- CertificateName *string `locationName:"certificateName" type:"string" required:"true"`
- // Your certificate's private key.
- CertificatePrivateKey *string `locationName:"certificatePrivateKey" type:"string" required:"true"`
- // The name of the DomainName resource.
- DomainName *string `locationName:"domainName" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CreateDomainNameInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateDomainNameInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateDomainNameInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateDomainNameInput"}
- if s.CertificateBody == nil {
- invalidParams.Add(request.NewErrParamRequired("CertificateBody"))
- }
- if s.CertificateChain == nil {
- invalidParams.Add(request.NewErrParamRequired("CertificateChain"))
- }
- if s.CertificateName == nil {
- invalidParams.Add(request.NewErrParamRequired("CertificateName"))
- }
- if s.CertificatePrivateKey == nil {
- invalidParams.Add(request.NewErrParamRequired("CertificatePrivateKey"))
- }
- if s.DomainName == nil {
- invalidParams.Add(request.NewErrParamRequired("DomainName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Request to add a new Model to an existing RestApi resource.
- type CreateModelInput struct {
- _ struct{} `type:"structure"`
- // The content-type for the model.
- ContentType *string `locationName:"contentType" type:"string" required:"true"`
- // The description of the model.
- Description *string `locationName:"description" type:"string"`
- // The name of the model.
- Name *string `locationName:"name" type:"string" required:"true"`
- // The RestApi identifier under which the Model will be created.
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- // The schema for the model. For application/json models, this should be JSON-schema
- // draft v4 (http://json-schema.org/documentation.html" target="_blank) model.
- Schema *string `locationName:"schema" type:"string"`
- }
- // String returns the string representation
- func (s CreateModelInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateModelInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateModelInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateModelInput"}
- if s.ContentType == nil {
- invalidParams.Add(request.NewErrParamRequired("ContentType"))
- }
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Requests Amazon API Gateway to create a Resource resource.
- type CreateResourceInput struct {
- _ struct{} `type:"structure"`
- // The parent resource's identifier.
- ParentId *string `location:"uri" locationName:"parent_id" type:"string" required:"true"`
- // The last path segment for this resource.
- PathPart *string `locationName:"pathPart" type:"string" required:"true"`
- // The identifier of the RestApi for the resource.
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CreateResourceInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateResourceInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateResourceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateResourceInput"}
- if s.ParentId == nil {
- invalidParams.Add(request.NewErrParamRequired("ParentId"))
- }
- if s.PathPart == nil {
- invalidParams.Add(request.NewErrParamRequired("PathPart"))
- }
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The POST Request to add a new RestApi resource to your collection.
- type CreateRestApiInput struct {
- _ struct{} `type:"structure"`
- // The Id of the RestApi that you want to clone from.
- CloneFrom *string `locationName:"cloneFrom" type:"string"`
- // The description of the RestApi.
- Description *string `locationName:"description" type:"string"`
- // The name of the RestApi.
- Name *string `locationName:"name" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CreateRestApiInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateRestApiInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateRestApiInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateRestApiInput"}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Requests Amazon API Gateway to create a Stage resource.
- type CreateStageInput struct {
- _ struct{} `type:"structure"`
- // Whether cache clustering is enabled for the stage.
- CacheClusterEnabled *bool `locationName:"cacheClusterEnabled" type:"boolean"`
- // The stage's cache cluster size.
- CacheClusterSize *string `locationName:"cacheClusterSize" type:"string" enum:"CacheClusterSize"`
- // The identifier of the Deployment resource for the Stage resource.
- DeploymentId *string `locationName:"deploymentId" type:"string" required:"true"`
- // The description of the Stage resource.
- Description *string `locationName:"description" type:"string"`
- // The identifier of the RestApi resource for the Stage resource to create.
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- // The name for the Stage resource.
- StageName *string `locationName:"stageName" type:"string" required:"true"`
- // A map that defines the stage variables for the new Stage resource. Variable
- // names can have alphanumeric characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+.
- Variables map[string]*string `locationName:"variables" type:"map"`
- }
- // String returns the string representation
- func (s CreateStageInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateStageInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateStageInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateStageInput"}
- if s.DeploymentId == nil {
- invalidParams.Add(request.NewErrParamRequired("DeploymentId"))
- }
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if s.StageName == nil {
- invalidParams.Add(request.NewErrParamRequired("StageName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A request to delete the ApiKey resource.
- type DeleteApiKeyInput struct {
- _ struct{} `type:"structure"`
- // The identifier of the ApiKey resource to be deleted.
- ApiKey *string `location:"uri" locationName:"api_Key" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteApiKeyInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteApiKeyInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteApiKeyInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteApiKeyInput"}
- if s.ApiKey == nil {
- invalidParams.Add(request.NewErrParamRequired("ApiKey"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type DeleteApiKeyOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteApiKeyOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteApiKeyOutput) GoString() string {
- return s.String()
- }
- // Request to delete an existing Authorizer resource.
- type DeleteAuthorizerInput struct {
- _ struct{} `type:"structure"`
- // The identifier of the Authorizer resource.
- AuthorizerId *string `location:"uri" locationName:"authorizer_id" type:"string" required:"true"`
- // The RestApi identifier for the Authorizer resource.
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteAuthorizerInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteAuthorizerInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteAuthorizerInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteAuthorizerInput"}
- if s.AuthorizerId == nil {
- invalidParams.Add(request.NewErrParamRequired("AuthorizerId"))
- }
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type DeleteAuthorizerOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteAuthorizerOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteAuthorizerOutput) GoString() string {
- return s.String()
- }
- // A request to delete the BasePathMapping resource.
- type DeleteBasePathMappingInput struct {
- _ struct{} `type:"structure"`
- // The base path name of the BasePathMapping resource to delete.
- BasePath *string `location:"uri" locationName:"base_path" type:"string" required:"true"`
- // The domain name of the BasePathMapping resource to delete.
- DomainName *string `location:"uri" locationName:"domain_name" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteBasePathMappingInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteBasePathMappingInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteBasePathMappingInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteBasePathMappingInput"}
- if s.BasePath == nil {
- invalidParams.Add(request.NewErrParamRequired("BasePath"))
- }
- if s.DomainName == nil {
- invalidParams.Add(request.NewErrParamRequired("DomainName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type DeleteBasePathMappingOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteBasePathMappingOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteBasePathMappingOutput) GoString() string {
- return s.String()
- }
- // A request to delete the ClientCertificate resource.
- type DeleteClientCertificateInput struct {
- _ struct{} `type:"structure"`
- // The identifier of the ClientCertificate resource to be deleted.
- ClientCertificateId *string `location:"uri" locationName:"clientcertificate_id" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteClientCertificateInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteClientCertificateInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteClientCertificateInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteClientCertificateInput"}
- if s.ClientCertificateId == nil {
- invalidParams.Add(request.NewErrParamRequired("ClientCertificateId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type DeleteClientCertificateOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteClientCertificateOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteClientCertificateOutput) GoString() string {
- return s.String()
- }
- // Requests Amazon API Gateway to delete a Deployment resource.
- type DeleteDeploymentInput struct {
- _ struct{} `type:"structure"`
- // The identifier of the Deployment resource to delete.
- DeploymentId *string `location:"uri" locationName:"deployment_id" type:"string" required:"true"`
- // The identifier of the RestApi resource for the Deployment resource to delete.
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteDeploymentInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteDeploymentInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteDeploymentInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteDeploymentInput"}
- if s.DeploymentId == nil {
- invalidParams.Add(request.NewErrParamRequired("DeploymentId"))
- }
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type DeleteDeploymentOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteDeploymentOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteDeploymentOutput) GoString() string {
- return s.String()
- }
- // A request to delete the DomainName resource.
- type DeleteDomainNameInput struct {
- _ struct{} `type:"structure"`
- // The name of the DomainName resource to be deleted.
- DomainName *string `location:"uri" locationName:"domain_name" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteDomainNameInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteDomainNameInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteDomainNameInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteDomainNameInput"}
- if s.DomainName == nil {
- invalidParams.Add(request.NewErrParamRequired("DomainName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type DeleteDomainNameOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteDomainNameOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteDomainNameOutput) GoString() string {
- return s.String()
- }
- // Represents a delete integration request.
- type DeleteIntegrationInput struct {
- _ struct{} `type:"structure"`
- // Specifies a delete integration request's HTTP method.
- HttpMethod *string `location:"uri" locationName:"http_method" type:"string" required:"true"`
- // Specifies a delete integration request's resource identifier.
- ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"`
- // Specifies a delete integration request's API identifier.
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteIntegrationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteIntegrationInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteIntegrationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteIntegrationInput"}
- if s.HttpMethod == nil {
- invalidParams.Add(request.NewErrParamRequired("HttpMethod"))
- }
- if s.ResourceId == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceId"))
- }
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type DeleteIntegrationOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteIntegrationOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteIntegrationOutput) GoString() string {
- return s.String()
- }
- // Represents a delete integration response request.
- type DeleteIntegrationResponseInput struct {
- _ struct{} `type:"structure"`
- // Specifies a delete integration response request's HTTP method.
- HttpMethod *string `location:"uri" locationName:"http_method" type:"string" required:"true"`
- // Specifies a delete integration response request's resource identifier.
- ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"`
- // Specifies a delete integration response request's API identifier.
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- // Specifies a delete integration response request's status code.
- StatusCode *string `location:"uri" locationName:"status_code" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteIntegrationResponseInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteIntegrationResponseInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteIntegrationResponseInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteIntegrationResponseInput"}
- if s.HttpMethod == nil {
- invalidParams.Add(request.NewErrParamRequired("HttpMethod"))
- }
- if s.ResourceId == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceId"))
- }
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if s.StatusCode == nil {
- invalidParams.Add(request.NewErrParamRequired("StatusCode"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type DeleteIntegrationResponseOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteIntegrationResponseOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteIntegrationResponseOutput) GoString() string {
- return s.String()
- }
- // Request to delete an existing Method resource.
- type DeleteMethodInput struct {
- _ struct{} `type:"structure"`
- // The HTTP verb that identifies the Method resource.
- HttpMethod *string `location:"uri" locationName:"http_method" type:"string" required:"true"`
- // The Resource identifier for the Method resource.
- ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"`
- // The RestApi identifier for the Method resource.
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteMethodInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteMethodInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteMethodInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteMethodInput"}
- if s.HttpMethod == nil {
- invalidParams.Add(request.NewErrParamRequired("HttpMethod"))
- }
- if s.ResourceId == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceId"))
- }
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type DeleteMethodOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteMethodOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteMethodOutput) GoString() string {
- return s.String()
- }
- // A request to delete an existing MethodResponse resource.
- type DeleteMethodResponseInput struct {
- _ struct{} `type:"structure"`
- // The HTTP verb identifier for the parent Method resource.
- HttpMethod *string `location:"uri" locationName:"http_method" type:"string" required:"true"`
- // The Resource identifier for the MethodResponse resource.
- ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"`
- // The RestApi identifier for the MethodResponse resource.
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- // The status code identifier for the MethodResponse resource.
- StatusCode *string `location:"uri" locationName:"status_code" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteMethodResponseInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteMethodResponseInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteMethodResponseInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteMethodResponseInput"}
- if s.HttpMethod == nil {
- invalidParams.Add(request.NewErrParamRequired("HttpMethod"))
- }
- if s.ResourceId == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceId"))
- }
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if s.StatusCode == nil {
- invalidParams.Add(request.NewErrParamRequired("StatusCode"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type DeleteMethodResponseOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteMethodResponseOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteMethodResponseOutput) GoString() string {
- return s.String()
- }
- // Request to delete an existing model in an existing RestApi resource.
- type DeleteModelInput struct {
- _ struct{} `type:"structure"`
- // The name of the model to delete.
- ModelName *string `location:"uri" locationName:"model_name" type:"string" required:"true"`
- // The RestApi under which the model will be deleted.
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteModelInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteModelInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteModelInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteModelInput"}
- if s.ModelName == nil {
- invalidParams.Add(request.NewErrParamRequired("ModelName"))
- }
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type DeleteModelOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteModelOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteModelOutput) GoString() string {
- return s.String()
- }
- // Request to delete a Resource.
- type DeleteResourceInput struct {
- _ struct{} `type:"structure"`
- // The identifier of the Resource resource.
- ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"`
- // The RestApi identifier for the Resource resource.
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteResourceInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteResourceInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteResourceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteResourceInput"}
- if s.ResourceId == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceId"))
- }
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type DeleteResourceOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteResourceOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteResourceOutput) GoString() string {
- return s.String()
- }
- // Request to delete the specified API from your collection.
- type DeleteRestApiInput struct {
- _ struct{} `type:"structure"`
- // The ID of the RestApi you want to delete.
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteRestApiInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteRestApiInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteRestApiInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteRestApiInput"}
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type DeleteRestApiOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteRestApiOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteRestApiOutput) GoString() string {
- return s.String()
- }
- // Requests Amazon API Gateway to delete a Stage resource.
- type DeleteStageInput struct {
- _ struct{} `type:"structure"`
- // The identifier of the RestApi resource for the Stage resource to delete.
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- // The name of the Stage resource to delete.
- StageName *string `location:"uri" locationName:"stage_name" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteStageInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteStageInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteStageInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteStageInput"}
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if s.StageName == nil {
- invalidParams.Add(request.NewErrParamRequired("StageName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type DeleteStageOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteStageOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteStageOutput) GoString() string {
- return s.String()
- }
- // An immutable representation of a RestApi resource that can be called by users
- // using Stages. A deployment must be associated with a Stage for it to be callable
- // over the Internet.
- type Deployment struct {
- _ struct{} `type:"structure"`
- // Gets a summary of the RestApi at the date and time that the deployment resource
- // was created.
- ApiSummary map[string]map[string]*MethodSnapshot `locationName:"apiSummary" type:"map"`
- // The date and time that the deployment resource was created.
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
- // The description for the deployment resource.
- Description *string `locationName:"description" type:"string"`
- // The identifier for the deployment resource.
- Id *string `locationName:"id" type:"string"`
- }
- // String returns the string representation
- func (s Deployment) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Deployment) GoString() string {
- return s.String()
- }
- // Represents a domain name that is contained in a simpler, more intuitive URL
- // that can be called.
- type DomainName struct {
- _ struct{} `type:"structure"`
- // The name of the certificate.
- CertificateName *string `locationName:"certificateName" type:"string"`
- // The date when the certificate was uploaded, in ISO 8601 format (http://www.iso.org/iso/home/standards/iso8601.htm"
- // target="_blank).
- CertificateUploadDate *time.Time `locationName:"certificateUploadDate" type:"timestamp" timestampFormat:"unix"`
- // The domain name of the Amazon CloudFront distribution. For more information,
- // see the Amazon CloudFront documentation (http://aws.amazon.com/documentation/cloudfront/"
- // target="_blank).
- DistributionDomainName *string `locationName:"distributionDomainName" type:"string"`
- // The name of the DomainName resource.
- DomainName *string `locationName:"domainName" type:"string"`
- }
- // String returns the string representation
- func (s DomainName) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DomainName) GoString() string {
- return s.String()
- }
- // Request to flush authorizer cache entries on a specified stage.
- type FlushStageAuthorizersCacheInput struct {
- _ struct{} `type:"structure"`
- // The API identifier of the stage to flush.
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- // The name of the stage to flush.
- StageName *string `location:"uri" locationName:"stage_name" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s FlushStageAuthorizersCacheInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s FlushStageAuthorizersCacheInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *FlushStageAuthorizersCacheInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "FlushStageAuthorizersCacheInput"}
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if s.StageName == nil {
- invalidParams.Add(request.NewErrParamRequired("StageName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type FlushStageAuthorizersCacheOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s FlushStageAuthorizersCacheOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s FlushStageAuthorizersCacheOutput) GoString() string {
- return s.String()
- }
- // Requests Amazon API Gateway to flush a stage's cache.
- type FlushStageCacheInput struct {
- _ struct{} `type:"structure"`
- // The API identifier of the stage to flush its cache.
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- // The name of the stage to flush its cache.
- StageName *string `location:"uri" locationName:"stage_name" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s FlushStageCacheInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s FlushStageCacheInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *FlushStageCacheInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "FlushStageCacheInput"}
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if s.StageName == nil {
- invalidParams.Add(request.NewErrParamRequired("StageName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type FlushStageCacheOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s FlushStageCacheOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s FlushStageCacheOutput) GoString() string {
- return s.String()
- }
- // A request to generate a ClientCertificate resource.
- type GenerateClientCertificateInput struct {
- _ struct{} `type:"structure"`
- // The description of the ClientCertificate.
- Description *string `locationName:"description" type:"string"`
- }
- // String returns the string representation
- func (s GenerateClientCertificateInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GenerateClientCertificateInput) GoString() string {
- return s.String()
- }
- // Requests Amazon API Gateway to get information about the current Account
- // resource.
- type GetAccountInput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s GetAccountInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetAccountInput) GoString() string {
- return s.String()
- }
- // A request to get information about the current ApiKey resource.
- type GetApiKeyInput struct {
- _ struct{} `type:"structure"`
- // The identifier of the ApiKey resource.
- ApiKey *string `location:"uri" locationName:"api_Key" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetApiKeyInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetApiKeyInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetApiKeyInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetApiKeyInput"}
- if s.ApiKey == nil {
- invalidParams.Add(request.NewErrParamRequired("ApiKey"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A request to get information about the current ApiKeys resource.
- type GetApiKeysInput struct {
- _ struct{} `type:"structure"`
- // The maximum number of ApiKeys to get information about.
- Limit *int64 `location:"querystring" locationName:"limit" type:"integer"`
- // The position of the current ApiKeys resource to get information about.
- Position *string `location:"querystring" locationName:"position" type:"string"`
- }
- // String returns the string representation
- func (s GetApiKeysInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetApiKeysInput) GoString() string {
- return s.String()
- }
- // Represents a collection of ApiKey resources.
- type GetApiKeysOutput struct {
- _ struct{} `type:"structure"`
- // The current page of any ApiKey resources in the collection of ApiKey resources.
- Items []*ApiKey `locationName:"item" type:"list"`
- Position *string `locationName:"position" type:"string"`
- }
- // String returns the string representation
- func (s GetApiKeysOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetApiKeysOutput) GoString() string {
- return s.String()
- }
- // Request to describe an existing Authorizer resource.
- type GetAuthorizerInput struct {
- _ struct{} `type:"structure"`
- // The identifier of the Authorizer resource.
- AuthorizerId *string `location:"uri" locationName:"authorizer_id" type:"string" required:"true"`
- // The RestApi identifier for the Authorizer resource.
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetAuthorizerInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetAuthorizerInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetAuthorizerInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetAuthorizerInput"}
- if s.AuthorizerId == nil {
- invalidParams.Add(request.NewErrParamRequired("AuthorizerId"))
- }
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Request to describe an existing Authorizers resource.
- type GetAuthorizersInput struct {
- _ struct{} `type:"structure"`
- // Limit the number of Authorizer resources in the response.
- Limit *int64 `location:"querystring" locationName:"limit" type:"integer"`
- // If not all Authorizer resources in the response were present, the position
- // will specificy where to start the next page of results.
- Position *string `location:"querystring" locationName:"position" type:"string"`
- // The RestApi identifier for the Authorizers resource.
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetAuthorizersInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetAuthorizersInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetAuthorizersInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetAuthorizersInput"}
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents a collection of Authorizer resources.
- type GetAuthorizersOutput struct {
- _ struct{} `type:"structure"`
- // Gets the current list of Authorizer resources in the collection.
- Items []*Authorizer `locationName:"item" type:"list"`
- Position *string `locationName:"position" type:"string"`
- }
- // String returns the string representation
- func (s GetAuthorizersOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetAuthorizersOutput) GoString() string {
- return s.String()
- }
- // Request to describe a BasePathMapping resource.
- type GetBasePathMappingInput struct {
- _ struct{} `type:"structure"`
- // The base path name that callers of the API must provide as part of the URL
- // after the domain name. This value must be unique for all of the mappings
- // across a single API. Leave this blank if you do not want callers to specify
- // any base path name after the domain name.
- BasePath *string `location:"uri" locationName:"base_path" type:"string" required:"true"`
- // The domain name of the BasePathMapping resource to be described.
- DomainName *string `location:"uri" locationName:"domain_name" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetBasePathMappingInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetBasePathMappingInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetBasePathMappingInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetBasePathMappingInput"}
- if s.BasePath == nil {
- invalidParams.Add(request.NewErrParamRequired("BasePath"))
- }
- if s.DomainName == nil {
- invalidParams.Add(request.NewErrParamRequired("DomainName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A request to get information about a collection of BasePathMapping resources.
- type GetBasePathMappingsInput struct {
- _ struct{} `type:"structure"`
- // The domain name of a BasePathMapping resource.
- DomainName *string `location:"uri" locationName:"domain_name" type:"string" required:"true"`
- // The maximum number of BasePathMapping resources in the collection to get
- // information about. The default limit is 25. It should be an integer between
- // 1 - 500.
- Limit *int64 `location:"querystring" locationName:"limit" type:"integer"`
- // The position of the current BasePathMapping resource in the collection to
- // get information about.
- Position *string `location:"querystring" locationName:"position" type:"string"`
- }
- // String returns the string representation
- func (s GetBasePathMappingsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetBasePathMappingsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetBasePathMappingsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetBasePathMappingsInput"}
- if s.DomainName == nil {
- invalidParams.Add(request.NewErrParamRequired("DomainName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents a collection of BasePathMapping resources.
- type GetBasePathMappingsOutput struct {
- _ struct{} `type:"structure"`
- // The current page of any BasePathMapping resources in the collection of base
- // path mapping resources.
- Items []*BasePathMapping `locationName:"item" type:"list"`
- Position *string `locationName:"position" type:"string"`
- }
- // String returns the string representation
- func (s GetBasePathMappingsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetBasePathMappingsOutput) GoString() string {
- return s.String()
- }
- // A request to get information about the current ClientCertificate resource.
- type GetClientCertificateInput struct {
- _ struct{} `type:"structure"`
- // The identifier of the ClientCertificate resource to be described.
- ClientCertificateId *string `location:"uri" locationName:"clientcertificate_id" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetClientCertificateInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetClientCertificateInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetClientCertificateInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetClientCertificateInput"}
- if s.ClientCertificateId == nil {
- invalidParams.Add(request.NewErrParamRequired("ClientCertificateId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A request to get information about a collection of ClientCertificate resources.
- type GetClientCertificatesInput struct {
- _ struct{} `type:"structure"`
- // The maximum number of ClientCertificate resources in the collection to get
- // information about. The default limit is 25. It should be an integer between
- // 1 - 500.
- Limit *int64 `location:"querystring" locationName:"limit" type:"integer"`
- // The position of the current ClientCertificate resource in the collection
- // to get information about.
- Position *string `location:"querystring" locationName:"position" type:"string"`
- }
- // String returns the string representation
- func (s GetClientCertificatesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetClientCertificatesInput) GoString() string {
- return s.String()
- }
- // Represents a collection of ClientCertificate resources.
- type GetClientCertificatesOutput struct {
- _ struct{} `type:"structure"`
- // The current page of any ClientCertificate resources in the collection of
- // ClientCertificate resources.
- Items []*ClientCertificate `locationName:"item" type:"list"`
- Position *string `locationName:"position" type:"string"`
- }
- // String returns the string representation
- func (s GetClientCertificatesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetClientCertificatesOutput) GoString() string {
- return s.String()
- }
- // Requests Amazon API Gateway to get information about a Deployment resource.
- type GetDeploymentInput struct {
- _ struct{} `type:"structure"`
- // The identifier of the Deployment resource to get information about.
- DeploymentId *string `location:"uri" locationName:"deployment_id" type:"string" required:"true"`
- // The identifier of the RestApi resource for the Deployment resource to get
- // information about.
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetDeploymentInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetDeploymentInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetDeploymentInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetDeploymentInput"}
- if s.DeploymentId == nil {
- invalidParams.Add(request.NewErrParamRequired("DeploymentId"))
- }
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Requests Amazon API Gateway to get information about a Deployments collection.
- type GetDeploymentsInput struct {
- _ struct{} `type:"structure"`
- // The maximum number of Deployment resources in the collection to get information
- // about. The default limit is 25. It should be an integer between 1 - 500.
- Limit *int64 `location:"querystring" locationName:"limit" type:"integer"`
- // The position of the current Deployment resource in the collection to get
- // information about.
- Position *string `location:"querystring" locationName:"position" type:"string"`
- // The identifier of the RestApi resource for the collection of Deployment resources
- // to get information about.
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetDeploymentsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetDeploymentsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetDeploymentsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetDeploymentsInput"}
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents a collection resource that contains zero or more references to
- // your existing deployments, and links that guide you on ways to interact with
- // your collection. The collection offers a paginated view of the contained
- // deployments.
- type GetDeploymentsOutput struct {
- _ struct{} `type:"structure"`
- // The current page of any Deployment resources in the collection of deployment
- // resources.
- Items []*Deployment `locationName:"item" type:"list"`
- Position *string `locationName:"position" type:"string"`
- }
- // String returns the string representation
- func (s GetDeploymentsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetDeploymentsOutput) GoString() string {
- return s.String()
- }
- // Request to get the name of a DomainName resource.
- type GetDomainNameInput struct {
- _ struct{} `type:"structure"`
- // The name of the DomainName resource.
- DomainName *string `location:"uri" locationName:"domain_name" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetDomainNameInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetDomainNameInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetDomainNameInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetDomainNameInput"}
- if s.DomainName == nil {
- invalidParams.Add(request.NewErrParamRequired("DomainName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Request to describe a collection of DomainName resources.
- type GetDomainNamesInput struct {
- _ struct{} `type:"structure"`
- // The maximum number of DomainName resources in the collection to get information
- // about. The default limit is 25. It should be an integer between 1 - 500.
- Limit *int64 `location:"querystring" locationName:"limit" type:"integer"`
- // The position of the current domain names to get information about.
- Position *string `location:"querystring" locationName:"position" type:"string"`
- }
- // String returns the string representation
- func (s GetDomainNamesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetDomainNamesInput) GoString() string {
- return s.String()
- }
- // Represents a collection of DomainName resources.
- type GetDomainNamesOutput struct {
- _ struct{} `type:"structure"`
- // The current page of any DomainName resources in the collection of DomainName
- // resources.
- Items []*DomainName `locationName:"item" type:"list"`
- Position *string `locationName:"position" type:"string"`
- }
- // String returns the string representation
- func (s GetDomainNamesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetDomainNamesOutput) GoString() string {
- return s.String()
- }
- // Request a new export of a RestApi for a particular Stage.
- type GetExportInput struct {
- _ struct{} `type:"structure"`
- // The content-type of the export, for example 'application/json'. Currently
- // 'application/json' and 'application/yaml' are supported for exportType 'swagger'.
- // Should be specifed in the 'Accept' header for direct API requests.
- Accepts *string `location:"header" locationName:"Accept" type:"string"`
- // The type of export. Currently only 'swagger' is supported.
- ExportType *string `location:"uri" locationName:"export_type" type:"string" required:"true"`
- // A key-value map of query string parameters that specify properties of the
- // export, depending on the requested exportType. For exportType 'swagger',
- // any combination of the following parameters are supported: 'integrations'
- // will export x-amazon-apigateway-integration extensions 'authorizers' will
- // export x-amazon-apigateway-authorizer extensions 'postman' will export with
- // Postman extensions, allowing for import to the Postman tool
- Parameters map[string]*string `location:"querystring" locationName:"parameters" type:"map"`
- // The identifier of the RestApi to be exported.
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- // The name of the Stage that will be exported.
- StageName *string `location:"uri" locationName:"stage_name" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetExportInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetExportInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetExportInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetExportInput"}
- if s.ExportType == nil {
- invalidParams.Add(request.NewErrParamRequired("ExportType"))
- }
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if s.StageName == nil {
- invalidParams.Add(request.NewErrParamRequired("StageName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The binary blob response to GetExport, which contains the generated SDK.
- type GetExportOutput struct {
- _ struct{} `type:"structure" payload:"Body"`
- // The binary blob response to GetExport, which contains the export.
- Body []byte `locationName:"body" type:"blob"`
- // The content-disposition header value in the HTTP reseponse.
- ContentDisposition *string `location:"header" locationName:"Content-Disposition" type:"string"`
- // The content-type header value in the HTTP response. This will correspond
- // to a valid 'accept' type in the request.
- ContentType *string `location:"header" locationName:"Content-Type" type:"string"`
- }
- // String returns the string representation
- func (s GetExportOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetExportOutput) GoString() string {
- return s.String()
- }
- // Represents a get integration request.
- type GetIntegrationInput struct {
- _ struct{} `type:"structure"`
- // Specifies a get integration request's HTTP method.
- HttpMethod *string `location:"uri" locationName:"http_method" type:"string" required:"true"`
- // Specifies a get integration request's resource identifier
- ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"`
- // Specifies a get integration request's API identifier.
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetIntegrationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetIntegrationInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetIntegrationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetIntegrationInput"}
- if s.HttpMethod == nil {
- invalidParams.Add(request.NewErrParamRequired("HttpMethod"))
- }
- if s.ResourceId == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceId"))
- }
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents a get integration response request.
- type GetIntegrationResponseInput struct {
- _ struct{} `type:"structure"`
- // Specifies a get integration response request's HTTP method.
- HttpMethod *string `location:"uri" locationName:"http_method" type:"string" required:"true"`
- // Specifies a get integration response request's resource identifier.
- ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"`
- // Specifies a get integration response request's API identifier.
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- // Specifies a get integration response request's status code.
- StatusCode *string `location:"uri" locationName:"status_code" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetIntegrationResponseInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetIntegrationResponseInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetIntegrationResponseInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetIntegrationResponseInput"}
- if s.HttpMethod == nil {
- invalidParams.Add(request.NewErrParamRequired("HttpMethod"))
- }
- if s.ResourceId == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceId"))
- }
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if s.StatusCode == nil {
- invalidParams.Add(request.NewErrParamRequired("StatusCode"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Request to describe an existing Method resource.
- type GetMethodInput struct {
- _ struct{} `type:"structure"`
- // Specifies the put method request's HTTP method type.
- HttpMethod *string `location:"uri" locationName:"http_method" type:"string" required:"true"`
- // The Resource identifier for the Method resource.
- ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"`
- // The RestApi identifier for the Method resource.
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetMethodInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetMethodInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetMethodInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetMethodInput"}
- if s.HttpMethod == nil {
- invalidParams.Add(request.NewErrParamRequired("HttpMethod"))
- }
- if s.ResourceId == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceId"))
- }
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Request to describe a MethodResponse resource.
- type GetMethodResponseInput struct {
- _ struct{} `type:"structure"`
- // The HTTP verb identifier for the parent Method resource.
- HttpMethod *string `location:"uri" locationName:"http_method" type:"string" required:"true"`
- // The Resource identifier for the MethodResponse resource.
- ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"`
- // The RestApi identifier for the MethodResponse resource.
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- // The status code identifier for the MethodResponse resource.
- StatusCode *string `location:"uri" locationName:"status_code" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetMethodResponseInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetMethodResponseInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetMethodResponseInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetMethodResponseInput"}
- if s.HttpMethod == nil {
- invalidParams.Add(request.NewErrParamRequired("HttpMethod"))
- }
- if s.ResourceId == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceId"))
- }
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if s.StatusCode == nil {
- invalidParams.Add(request.NewErrParamRequired("StatusCode"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Request to list information about a model in an existing RestApi resource.
- type GetModelInput struct {
- _ struct{} `type:"structure"`
- // Resolves all external model references and returns a flattened model schema.
- Flatten *bool `location:"querystring" locationName:"flatten" type:"boolean"`
- // The name of the model as an identifier.
- ModelName *string `location:"uri" locationName:"model_name" type:"string" required:"true"`
- // The RestApi identifier under which the Model exists.
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetModelInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetModelInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetModelInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetModelInput"}
- if s.ModelName == nil {
- invalidParams.Add(request.NewErrParamRequired("ModelName"))
- }
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Request to generate a sample mapping template used to transform the payload.
- type GetModelTemplateInput struct {
- _ struct{} `type:"structure"`
- // The name of the model for which to generate a template.
- ModelName *string `location:"uri" locationName:"model_name" type:"string" required:"true"`
- // The ID of the RestApi under which the model exists.
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetModelTemplateInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetModelTemplateInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetModelTemplateInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetModelTemplateInput"}
- if s.ModelName == nil {
- invalidParams.Add(request.NewErrParamRequired("ModelName"))
- }
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents a mapping template used to transform a payload.
- type GetModelTemplateOutput struct {
- _ struct{} `type:"structure"`
- // The Apache Velocity Template Language (VTL) (http://velocity.apache.org/engine/devel/vtl-reference-guide.html"
- // target="_blank) template content used for the template resource.
- Value *string `locationName:"value" type:"string"`
- }
- // String returns the string representation
- func (s GetModelTemplateOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetModelTemplateOutput) GoString() string {
- return s.String()
- }
- // Request to list existing Models defined for a RestApi resource.
- type GetModelsInput struct {
- _ struct{} `type:"structure"`
- // The maximum number of models in the collection to get information about.
- // The default limit is 25. It should be an integer between 1 - 500.
- Limit *int64 `location:"querystring" locationName:"limit" type:"integer"`
- // The position of the next set of results in the Models resource to get information
- // about.
- Position *string `location:"querystring" locationName:"position" type:"string"`
- // The RestApi identifier.
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetModelsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetModelsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetModelsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetModelsInput"}
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents a collection of Model resources.
- type GetModelsOutput struct {
- _ struct{} `type:"structure"`
- // Gets the current Model resource in the collection.
- Items []*Model `locationName:"item" type:"list"`
- Position *string `locationName:"position" type:"string"`
- }
- // String returns the string representation
- func (s GetModelsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetModelsOutput) GoString() string {
- return s.String()
- }
- // Request to list information about a resource.
- type GetResourceInput struct {
- _ struct{} `type:"structure"`
- // The identifier for the Resource resource.
- ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"`
- // The RestApi identifier for the resource.
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetResourceInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetResourceInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetResourceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetResourceInput"}
- if s.ResourceId == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceId"))
- }
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Request to list information about a collection of resources.
- type GetResourcesInput struct {
- _ struct{} `type:"structure"`
- // The maximum number of Resource resources in the collection to get information
- // about. The default limit is 25. It should be an integer between 1 - 500.
- Limit *int64 `location:"querystring" locationName:"limit" type:"integer"`
- // The position of the next set of results in the current Resources resource
- // to get information about.
- Position *string `location:"querystring" locationName:"position" type:"string"`
- // The RestApi identifier for the Resource.
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetResourcesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetResourcesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetResourcesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetResourcesInput"}
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents a collection of Resource resources.
- type GetResourcesOutput struct {
- _ struct{} `type:"structure"`
- // Gets the current Resource resource in the collection.
- Items []*Resource `locationName:"item" type:"list"`
- Position *string `locationName:"position" type:"string"`
- }
- // String returns the string representation
- func (s GetResourcesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetResourcesOutput) GoString() string {
- return s.String()
- }
- // The GET request to list an existing RestApi defined for your collection.
- type GetRestApiInput struct {
- _ struct{} `type:"structure"`
- // The identifier of the RestApi resource.
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetRestApiInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetRestApiInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetRestApiInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetRestApiInput"}
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The GET request to list existing RestApis defined for your collection.
- type GetRestApisInput struct {
- _ struct{} `type:"structure"`
- // The maximum number of RestApi resources in the collection to get information
- // about. The default limit is 25. It should be an integer between 1 - 500.
- Limit *int64 `location:"querystring" locationName:"limit" type:"integer"`
- // The position of the current RestApis resource in the collection to get information
- // about.
- Position *string `location:"querystring" locationName:"position" type:"string"`
- }
- // String returns the string representation
- func (s GetRestApisInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetRestApisInput) GoString() string {
- return s.String()
- }
- // Contains references to your APIs and links that guide you in ways to interact
- // with your collection. A collection offers a paginated view of your APIs.
- type GetRestApisOutput struct {
- _ struct{} `type:"structure"`
- // An array of links to the current page of RestApi resources.
- Items []*RestApi `locationName:"item" type:"list"`
- Position *string `locationName:"position" type:"string"`
- }
- // String returns the string representation
- func (s GetRestApisOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetRestApisOutput) GoString() string {
- return s.String()
- }
- // Request a new generated client SDK for a RestApi and Stage.
- type GetSdkInput struct {
- _ struct{} `type:"structure"`
- // A key-value map of query string parameters that specify properties of the
- // SDK, depending on the requested sdkType. For sdkType 'objectivec', a parameter
- // named "classPrefix" is required. For sdkType 'android', parameters named
- // "groupId", "artifactId", "artifactVersion", and "invokerPackage" are required.
- Parameters map[string]*string `location:"querystring" locationName:"parameters" type:"map"`
- // The identifier of the RestApi that the SDK will use.
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- // The language for the generated SDK. Currently javascript, android, and objectivec
- // (for iOS) are supported.
- SdkType *string `location:"uri" locationName:"sdk_type" type:"string" required:"true"`
- // The name of the Stage that the SDK will use.
- StageName *string `location:"uri" locationName:"stage_name" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetSdkInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetSdkInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetSdkInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetSdkInput"}
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if s.SdkType == nil {
- invalidParams.Add(request.NewErrParamRequired("SdkType"))
- }
- if s.StageName == nil {
- invalidParams.Add(request.NewErrParamRequired("StageName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The binary blob response to GetSdk, which contains the generated SDK.
- type GetSdkOutput struct {
- _ struct{} `type:"structure" payload:"Body"`
- // The binary blob response to GetSdk, which contains the generated SDK.
- Body []byte `locationName:"body" type:"blob"`
- // The content-disposition header value in the HTTP reseponse.
- ContentDisposition *string `location:"header" locationName:"Content-Disposition" type:"string"`
- // The content-type header value in the HTTP response.
- ContentType *string `location:"header" locationName:"Content-Type" type:"string"`
- }
- // String returns the string representation
- func (s GetSdkOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetSdkOutput) GoString() string {
- return s.String()
- }
- // Requests Amazon API Gateway to get information about a Stage resource.
- type GetStageInput struct {
- _ struct{} `type:"structure"`
- // The identifier of the RestApi resource for the Stage resource to get information
- // about.
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- // The name of the Stage resource to get information about.
- StageName *string `location:"uri" locationName:"stage_name" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetStageInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetStageInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetStageInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetStageInput"}
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if s.StageName == nil {
- invalidParams.Add(request.NewErrParamRequired("StageName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Requests Amazon API Gateway to get information about one or more Stage resources.
- type GetStagesInput struct {
- _ struct{} `type:"structure"`
- // The stages' deployment identifiers.
- DeploymentId *string `location:"querystring" locationName:"deploymentId" type:"string"`
- // The stages' API identifiers.
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetStagesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetStagesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetStagesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetStagesInput"}
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A list of Stage resource that are associated with the ApiKey resource.
- type GetStagesOutput struct {
- _ struct{} `type:"structure"`
- // An individual Stage resource.
- Item []*Stage `locationName:"item" type:"list"`
- }
- // String returns the string representation
- func (s GetStagesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetStagesOutput) GoString() string {
- return s.String()
- }
- // A POST request to import an API to Amazon API Gateway using an input of an
- // API definition file.
- type ImportRestApiInput struct {
- _ struct{} `type:"structure" payload:"Body"`
- // The POST request body containing external API definitions. Currently, only
- // Swagger definition JSON files are supported.
- Body []byte `locationName:"body" type:"blob" required:"true"`
- // A query parameter to indicate whether to rollback the API creation (true)
- // or not (false) when a warning is encountered. The default value is false.
- FailOnWarnings *bool `location:"querystring" locationName:"failonwarnings" type:"boolean"`
- // Custom header parameters as part of the request.
- Parameters map[string]*string `location:"querystring" locationName:"parameters" type:"map"`
- }
- // String returns the string representation
- func (s ImportRestApiInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ImportRestApiInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ImportRestApiInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ImportRestApiInput"}
- if s.Body == nil {
- invalidParams.Add(request.NewErrParamRequired("Body"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents a HTTP, AWS, or Mock integration.
- type Integration struct {
- _ struct{} `type:"structure"`
- // Specifies the integration's cache key parameters.
- CacheKeyParameters []*string `locationName:"cacheKeyParameters" type:"list"`
- // Specifies the integration's cache namespace.
- CacheNamespace *string `locationName:"cacheNamespace" type:"string"`
- // Specifies the credentials required for the integration, if any. For AWS integrations,
- // three options are available. To specify an IAM Role for Amazon API Gateway
- // to assume, use the role's Amazon Resource Name (ARN). To require that the
- // caller's identity be passed through from the request, specify the string
- // arn:aws:iam::\*:user/\*. To use resource-based permissions on supported AWS
- // services, specify null.
- Credentials *string `locationName:"credentials" type:"string"`
- // Specifies the integration's HTTP method type.
- HttpMethod *string `locationName:"httpMethod" type:"string"`
- // Specifies the integration's responses.
- IntegrationResponses map[string]*IntegrationResponse `locationName:"integrationResponses" type:"map"`
- // Specifies the pass-through behavior for incoming requests based on the Content-Type
- // header in the request, and the available requestTemplates defined on the
- // Integration. There are three valid values: WHEN_NO_MATCH, WHEN_NO_TEMPLATES,
- // and NEVER.
- //
- // WHEN_NO_MATCH passes the request body for unmapped content types through
- // to the Integration backend without transformation.
- //
- // NEVER rejects unmapped content types with an HTTP 415 'Unsupported Media
- // Type' response.
- //
- // WHEN_NO_TEMPLATES will allow pass-through when the Integration has NO content
- // types mapped to templates. However if there is at least one content type
- // defined, unmapped content types will be rejected with the same 415 response.
- PassthroughBehavior *string `locationName:"passthroughBehavior" type:"string"`
- // Represents requests parameters that are sent with the backend request. Request
- // parameters are represented as a key/value map, with a destination as the
- // key and a source as the value. A source must match an existing method request
- // parameter, or a static value. Static values must be enclosed with single
- // quotes, and be pre-encoded based on their destination in the request. The
- // destination must match the pattern integration.request.{location}.{name},
- // where location is either querystring, path, or header. name must be a valid,
- // unique parameter name.
- RequestParameters map[string]*string `locationName:"requestParameters" type:"map"`
- // Represents a map of Velocity templates that are applied on the request payload
- // based on the value of the Content-Type header sent by the client. The content
- // type value is the key in this map, and the template (as a String) is the
- // value.
- RequestTemplates map[string]*string `locationName:"requestTemplates" type:"map"`
- // Specifies the integration's type. The valid value is HTTP, AWS, or MOCK.
- Type *string `locationName:"type" type:"string" enum:"IntegrationType"`
- // Specifies the integration's Uniform Resource Identifier (URI). For HTTP integrations,
- // the URI must be a fully formed, encoded HTTP(S) URL according to the RFC-3986
- // specification (https://www.ietf.org/rfc/rfc3986.txt" target="_blank). For
- // AWS integrations, the URI should be of the form arn:aws:apigateway:{region}:{subdomain.service|service}:{path|action}/{service_api}.
- // Region, subdomain and service are used to determine the right endpoint. For
- // AWS services that use the Action= query string parameter, service_api should
- // be a valid action for the desired service. For RESTful AWS service APIs,
- // path is used to indicate that the remaining substring in the URI should be
- // treated as the path to the resource, including the initial /.
- Uri *string `locationName:"uri" type:"string"`
- }
- // String returns the string representation
- func (s Integration) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Integration) GoString() string {
- return s.String()
- }
- // Represents an integration response. The status code must map to an existing
- // MethodResponse, and parameters and templates can be used to transform the
- // backend response.
- type IntegrationResponse struct {
- _ struct{} `type:"structure"`
- // Represents response parameters that can be read from the backend response.
- // Response parameters are represented as a key/value map, with a destination
- // as the key and a source as the value. A destination must match an existing
- // response parameter in the MethodResponse. The source can be a header from
- // the backend response, or a static value. Static values are specified using
- // enclosing single quotes, and backend response headers can be read using the
- // pattern integration.response.header.{name}.
- ResponseParameters map[string]*string `locationName:"responseParameters" type:"map"`
- // Specifies the templates used to transform the integration response body.
- // Response templates are represented as a key/value map, with a content-type
- // as the key and a template as the value.
- ResponseTemplates map[string]*string `locationName:"responseTemplates" type:"map"`
- // Specifies the regular expression (regex) pattern used to choose an integration
- // response based on the response from the backend. If the backend is an AWS
- // Lambda function, the AWS Lambda function error header is matched. For all
- // other HTTP and AWS backends, the HTTP status code is matched.
- SelectionPattern *string `locationName:"selectionPattern" type:"string"`
- // Specifies the status code that is used to map the integration response to
- // an existing MethodResponse.
- StatusCode *string `locationName:"statusCode" type:"string"`
- }
- // String returns the string representation
- func (s IntegrationResponse) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s IntegrationResponse) GoString() string {
- return s.String()
- }
- // Represents a method.
- type Method struct {
- _ struct{} `type:"structure"`
- // Specifies whether the method requires a valid ApiKey.
- ApiKeyRequired *bool `locationName:"apiKeyRequired" type:"boolean"`
- // The method's authorization type.
- AuthorizationType *string `locationName:"authorizationType" type:"string"`
- // Specifies the identifier of an Authorizer to use on this Method. The authorizationType
- // must be CUSTOM.
- AuthorizerId *string `locationName:"authorizerId" type:"string"`
- // The HTTP method.
- HttpMethod *string `locationName:"httpMethod" type:"string"`
- // The method's integration.
- MethodIntegration *Integration `locationName:"methodIntegration" type:"structure"`
- // Represents available responses that can be sent to the caller. Method responses
- // are represented as a key/value map, with an HTTP status code as the key and
- // a MethodResponse as the value. The status codes are available for the Integration
- // responses to map to.
- MethodResponses map[string]*MethodResponse `locationName:"methodResponses" type:"map"`
- // Specifies the Model resources used for the request's content type. Request
- // models are represented as a key/value map, with a content type as the key
- // and a Model name as the value.
- RequestModels map[string]*string `locationName:"requestModels" type:"map"`
- // Represents request parameters that can be accepted by Amazon API Gateway.
- // Request parameters are represented as a key/value map, with a source as the
- // key and a Boolean flag as the value. The Boolean flag is used to specify
- // whether the parameter is required. A source must match the pattern method.request.{location}.{name},
- // where location is either querystring, path, or header. name is a valid, unique
- // parameter name. Sources specified here are available to the integration for
- // mapping to integration request parameters or templates.
- RequestParameters map[string]*bool `locationName:"requestParameters" type:"map"`
- }
- // String returns the string representation
- func (s Method) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Method) GoString() string {
- return s.String()
- }
- // Represents a method response. Amazon API Gateway sends back the status code
- // to the caller as the HTTP status code. Parameters and models can be used
- // to transform the response from the method's integration.
- type MethodResponse struct {
- _ struct{} `type:"structure"`
- // Specifies the Model resources used for the response's content-type. Response
- // models are represented as a key/value map, with a content-type as the key
- // and a Model name as the value.
- ResponseModels map[string]*string `locationName:"responseModels" type:"map"`
- // Represents response parameters that can be sent back to the caller by Amazon
- // API Gateway. Response parameters are represented as a key/value map, with
- // a destination as the key and a boolean flag as the value, which is used to
- // specify whether the parameter is required. A destination must match the pattern
- // method.response.header.{name}, where name is a valid, unique header name.
- // Destinations specified here are available to the integration for mapping
- // from integration response parameters.
- ResponseParameters map[string]*bool `locationName:"responseParameters" type:"map"`
- // The method response's status code.
- StatusCode *string `locationName:"statusCode" type:"string"`
- }
- // String returns the string representation
- func (s MethodResponse) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s MethodResponse) GoString() string {
- return s.String()
- }
- // Specifies the method setting properties.
- type MethodSetting struct {
- _ struct{} `type:"structure"`
- // Specifies whether the cached responses are encrypted. The PATCH path for
- // this setting is /{method_setting_key}/caching/dataEncrypted, and the value
- // is a Boolean.
- CacheDataEncrypted *bool `locationName:"cacheDataEncrypted" type:"boolean"`
- // Specifies the time to live (TTL) in seconds, for cached responses. The higher
- // a the TTL, the longer the response will be cached. The PATCH path for this
- // setting is /{method_setting_key}/caching/ttlInSeconds, and the value is an
- // integer.
- CacheTtlInSeconds *int64 `locationName:"cacheTtlInSeconds" type:"integer"`
- // Specifies whether responses should be cached and returned for requests. A
- // cache cluster must be enabled on the stage for responses to be cached. The
- // PATCH path for this setting is /{method_setting_key}/caching/enabled, and
- // the value is a Boolean.
- CachingEnabled *bool `locationName:"cachingEnabled" type:"boolean"`
- // Specifies the whether data trace logging is enabled for this method, which
- // effects the log entries pushed to Amazon CloudWatch Logs. The PATCH path
- // for this setting is /{method_setting_key}/logging/dataTrace, and the value
- // is a Boolean.
- DataTraceEnabled *bool `locationName:"dataTraceEnabled" type:"boolean"`
- // Specifies the logging level for this method, which effects the log entries
- // pushed to Amazon CloudWatch Logs. The PATCH path for this setting is /{method_setting_key}/logging/loglevel,
- // and the available levels are OFF, ERROR, and INFO.
- LoggingLevel *string `locationName:"loggingLevel" type:"string"`
- // Specifies whether Amazon CloudWatch metrics are enabled for this method.
- // The PATCH path for this setting is /{method_setting_key}/metrics/enabled,
- // and the value is a Boolean.
- MetricsEnabled *bool `locationName:"metricsEnabled" type:"boolean"`
- // Specifies whether authorization is required for a cache invalidation request.
- // The PATCH path for this setting is /{method_setting_key}/caching/requireAuthorizationForCacheControl,
- // and the value is a Boolean.
- RequireAuthorizationForCacheControl *bool `locationName:"requireAuthorizationForCacheControl" type:"boolean"`
- // Specifies the throttling burst limit. The PATCH path for this setting is
- // /{method_setting_key}/throttling/burstLimit, and the value is an integer.
- ThrottlingBurstLimit *int64 `locationName:"throttlingBurstLimit" type:"integer"`
- // Specifies the throttling rate limit. The PATCH path for this setting is /{method_setting_key}/throttling/rateLimit,
- // and the value is a double.
- ThrottlingRateLimit *float64 `locationName:"throttlingRateLimit" type:"double"`
- // Specifies the strategy on how to handle the unauthorized requests for cache
- // invalidation. The PATCH path for this setting is /{method_setting_key}/caching/unauthorizedCacheControlHeaderStrategy,
- // and the available values are FAIL_WITH_403, SUCCEED_WITH_RESPONSE_HEADER,
- // SUCCEED_WITHOUT_RESPONSE_HEADER.
- UnauthorizedCacheControlHeaderStrategy *string `locationName:"unauthorizedCacheControlHeaderStrategy" type:"string" enum:"UnauthorizedCacheControlHeaderStrategy"`
- }
- // String returns the string representation
- func (s MethodSetting) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s MethodSetting) GoString() string {
- return s.String()
- }
- // Represents a summary of a Method resource, given a particular date and time.
- type MethodSnapshot struct {
- _ struct{} `type:"structure"`
- // Specifies whether the method requires a valid ApiKey.
- ApiKeyRequired *bool `locationName:"apiKeyRequired" type:"boolean"`
- // Specifies the type of authorization used for the method.
- AuthorizationType *string `locationName:"authorizationType" type:"string"`
- }
- // String returns the string representation
- func (s MethodSnapshot) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s MethodSnapshot) GoString() string {
- return s.String()
- }
- // Represents the structure of a request or response payload for a method.
- type Model struct {
- _ struct{} `type:"structure"`
- // The content-type for the model.
- ContentType *string `locationName:"contentType" type:"string"`
- // The description of the model.
- Description *string `locationName:"description" type:"string"`
- // The identifier for the model resource.
- Id *string `locationName:"id" type:"string"`
- // The name of the model.
- Name *string `locationName:"name" type:"string"`
- // The schema for the model. For application/json models, this should be JSON-schema
- // draft v4 (http://json-schema.org/documentation.html" target="_blank) model.
- Schema *string `locationName:"schema" type:"string"`
- }
- // String returns the string representation
- func (s Model) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Model) GoString() string {
- return s.String()
- }
- // A single patch operation to apply to the specified resource. Please refer
- // to http://tools.ietf.org/html/rfc6902#section-4 for an explanation of how
- // each operation is used.
- type PatchOperation struct {
- _ struct{} `type:"structure"`
- // The "move" and "copy" operation object MUST contain a "from" member, which
- // is a string containing a JSON Pointer value that references the location
- // in the target document to move the value from.
- From *string `locationName:"from" type:"string"`
- // A patch operation whose value indicates the operation to perform. Its value
- // MUST be one of "add", "remove", "replace", "move", "copy", or "test"; other
- // values are errors.
- Op *string `locationName:"op" type:"string" enum:"op"`
- // Operation objects MUST have exactly one "path" member. That member's value
- // is a string containing a `JSON-Pointer` value that references a location
- // within the target document (the "target location") where the operation is
- // performed.
- Path *string `locationName:"path" type:"string"`
- // The actual value content.
- Value *string `locationName:"value" type:"string"`
- }
- // String returns the string representation
- func (s PatchOperation) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PatchOperation) GoString() string {
- return s.String()
- }
- // Represents a put integration request.
- type PutIntegrationInput struct {
- _ struct{} `type:"structure"`
- // Specifies a put integration input's cache key parameters.
- CacheKeyParameters []*string `locationName:"cacheKeyParameters" type:"list"`
- // Specifies a put integration input's cache namespace.
- CacheNamespace *string `locationName:"cacheNamespace" type:"string"`
- // Specifies whether credentials are required for a put integration.
- Credentials *string `locationName:"credentials" type:"string"`
- // Specifies a put integration request's HTTP method.
- HttpMethod *string `location:"uri" locationName:"http_method" type:"string" required:"true"`
- // Specifies a put integration HTTP method. When the integration type is HTTP
- // or AWS, this field is required.
- IntegrationHttpMethod *string `locationName:"httpMethod" type:"string"`
- // Specifies the pass-through behavior for incoming requests based on the Content-Type
- // header in the request, and the available requestTemplates defined on the
- // Integration. There are three valid values: WHEN_NO_MATCH, WHEN_NO_TEMPLATES,
- // and NEVER.
- //
- // WHEN_NO_MATCH passes the request body for unmapped content types through
- // to the Integration backend without transformation.
- //
- // NEVER rejects unmapped content types with an HTTP 415 'Unsupported Media
- // Type' response.
- //
- // WHEN_NO_TEMPLATES will allow pass-through when the Integration has NO content
- // types mapped to templates. However if there is at least one content type
- // defined, unmapped content types will be rejected with the same 415 response.
- PassthroughBehavior *string `locationName:"passthroughBehavior" type:"string"`
- // Represents request parameters that are sent with the backend request. Request
- // parameters are represented as a key/value map, with a destination as the
- // key and a source as the value. A source must match an existing method request
- // parameter, or a static value. Static values must be enclosed with single
- // quotes, and be pre-encoded based on their destination in the request. The
- // destination must match the pattern integration.request.{location}.{name},
- // where location is either querystring, path, or header. name must be a valid,
- // unique parameter name.
- RequestParameters map[string]*string `locationName:"requestParameters" type:"map"`
- // Represents a map of Velocity templates that are applied on the request payload
- // based on the value of the Content-Type header sent by the client. The content
- // type value is the key in this map, and the template (as a String) is the
- // value.
- RequestTemplates map[string]*string `locationName:"requestTemplates" type:"map"`
- // Specifies a put integration request's resource ID.
- ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"`
- // Specifies a put integration request's API identifier.
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- // Specifies a put integration input's type.
- Type *string `locationName:"type" type:"string" required:"true" enum:"IntegrationType"`
- // Specifies a put integration input's Uniform Resource Identifier (URI). When
- // the integration type is HTTP or AWS, this field is required. For integration
- // with Lambda as an AWS service proxy, this value is of the 'arn:aws:apigateway:<region>:lambda:path/2015-03-31/functions/<functionArn>/invocations'
- // format.
- Uri *string `locationName:"uri" type:"string"`
- }
- // String returns the string representation
- func (s PutIntegrationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PutIntegrationInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *PutIntegrationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PutIntegrationInput"}
- if s.HttpMethod == nil {
- invalidParams.Add(request.NewErrParamRequired("HttpMethod"))
- }
- if s.ResourceId == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceId"))
- }
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if s.Type == nil {
- invalidParams.Add(request.NewErrParamRequired("Type"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents a put integration response request.
- type PutIntegrationResponseInput struct {
- _ struct{} `type:"structure"`
- // Specifies a put integration response request's HTTP method.
- HttpMethod *string `location:"uri" locationName:"http_method" type:"string" required:"true"`
- // Specifies a put integration response request's resource identifier.
- ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"`
- // Represents response parameters that can be read from the backend response.
- // Response parameters are represented as a key/value map, with a destination
- // as the key and a source as the value. A destination must match an existing
- // response parameter in the Method. The source can be a header from the backend
- // response, or a static value. Static values are specified using enclosing
- // single quotes, and backend response headers can be read using the pattern
- // integration.response.header.{name}.
- ResponseParameters map[string]*string `locationName:"responseParameters" type:"map"`
- // Specifies a put integration response's templates.
- ResponseTemplates map[string]*string `locationName:"responseTemplates" type:"map"`
- // Specifies a put integration response request's API identifier.
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- // Specifies the selection pattern of a put integration response.
- SelectionPattern *string `locationName:"selectionPattern" type:"string"`
- // Specifies the status code that is used to map the integration response to
- // an existing MethodResponse.
- StatusCode *string `location:"uri" locationName:"status_code" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s PutIntegrationResponseInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PutIntegrationResponseInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *PutIntegrationResponseInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PutIntegrationResponseInput"}
- if s.HttpMethod == nil {
- invalidParams.Add(request.NewErrParamRequired("HttpMethod"))
- }
- if s.ResourceId == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceId"))
- }
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if s.StatusCode == nil {
- invalidParams.Add(request.NewErrParamRequired("StatusCode"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Request to add a method to an existing Resource resource.
- type PutMethodInput struct {
- _ struct{} `type:"structure"`
- // Specifies whether the method required a valid ApiKey.
- ApiKeyRequired *bool `locationName:"apiKeyRequired" type:"boolean"`
- // Specifies the type of authorization used for the method.
- AuthorizationType *string `locationName:"authorizationType" type:"string" required:"true"`
- // Specifies the identifier of an Authorizer to use on this Method, if the type
- // is CUSTOM.
- AuthorizerId *string `locationName:"authorizerId" type:"string"`
- // Specifies the put method request's HTTP method type.
- HttpMethod *string `location:"uri" locationName:"http_method" type:"string" required:"true"`
- // Specifies the Model resources used for the request's content type. Request
- // models are represented as a key/value map, with a content type as the key
- // and a Model name as the value.
- RequestModels map[string]*string `locationName:"requestModels" type:"map"`
- // Represents requests parameters that are sent with the backend request. Request
- // parameters are represented as a key/value map, with a destination as the
- // key and a source as the value. A source must match an existing method request
- // parameter, or a static value. Static values must be enclosed with single
- // quotes, and be pre-encoded based on their destination in the request. The
- // destination must match the pattern integration.request.{location}.{name},
- // where location is either querystring, path, or header. name must be a valid,
- // unique parameter name.
- RequestParameters map[string]*bool `locationName:"requestParameters" type:"map"`
- // The Resource identifier for the new Method resource.
- ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"`
- // The RestApi identifier for the new Method resource.
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s PutMethodInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PutMethodInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *PutMethodInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PutMethodInput"}
- if s.AuthorizationType == nil {
- invalidParams.Add(request.NewErrParamRequired("AuthorizationType"))
- }
- if s.HttpMethod == nil {
- invalidParams.Add(request.NewErrParamRequired("HttpMethod"))
- }
- if s.ResourceId == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceId"))
- }
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Request to add a MethodResponse to an existing Method resource.
- type PutMethodResponseInput struct {
- _ struct{} `type:"structure"`
- // The HTTP verb that identifies the Method resource.
- HttpMethod *string `location:"uri" locationName:"http_method" type:"string" required:"true"`
- // The Resource identifier for the Method resource.
- ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"`
- // Specifies the Model resources used for the response's content type. Response
- // models are represented as a key/value map, with a content type as the key
- // and a Model name as the value.
- ResponseModels map[string]*string `locationName:"responseModels" type:"map"`
- // Represents response parameters that can be sent back to the caller by Amazon
- // API Gateway. Response parameters are represented as a key/value map, with
- // a destination as the key and a Boolean flag as the value. The Boolean flag
- // is used to specify whether the parameter is required. A destination must
- // match the pattern method.response.header.{name}, where name is a valid, unique
- // header name. Destinations specified here are available to the integration
- // for mapping from integration response parameters.
- ResponseParameters map[string]*bool `locationName:"responseParameters" type:"map"`
- // The RestApi identifier for the Method resource.
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- // The method response's status code.
- StatusCode *string `location:"uri" locationName:"status_code" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s PutMethodResponseInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PutMethodResponseInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *PutMethodResponseInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PutMethodResponseInput"}
- if s.HttpMethod == nil {
- invalidParams.Add(request.NewErrParamRequired("HttpMethod"))
- }
- if s.ResourceId == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceId"))
- }
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if s.StatusCode == nil {
- invalidParams.Add(request.NewErrParamRequired("StatusCode"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A PUT request to update an existing API, with external API definitions specified
- // as the request body.
- type PutRestApiInput struct {
- _ struct{} `type:"structure" payload:"Body"`
- // The PUT request body containing external API definitions. Currently, only
- // Swagger definition JSON files are supported.
- Body []byte `locationName:"body" type:"blob" required:"true"`
- // A query parameter to indicate whether to rollback the API update (true) or
- // not (false) when a warning is encountered. The default value is false.
- FailOnWarnings *bool `location:"querystring" locationName:"failonwarnings" type:"boolean"`
- // The mode query parameter to specify the update mode. Valid values are "merge"
- // and "overwrite". By default, the update mode is "merge".
- Mode *string `location:"querystring" locationName:"mode" type:"string" enum:"PutMode"`
- // Custom headers supplied as part of the request.
- Parameters map[string]*string `location:"querystring" locationName:"parameters" type:"map"`
- // The identifier of the RestApi to be updated.
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s PutRestApiInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PutRestApiInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *PutRestApiInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PutRestApiInput"}
- if s.Body == nil {
- invalidParams.Add(request.NewErrParamRequired("Body"))
- }
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents a resource.
- type Resource struct {
- _ struct{} `type:"structure"`
- // The resource's identifier.
- Id *string `locationName:"id" type:"string"`
- // The parent resource's identifier.
- ParentId *string `locationName:"parentId" type:"string"`
- // The full path for this resource.
- Path *string `locationName:"path" type:"string"`
- // The last path segment for this resource.
- PathPart *string `locationName:"pathPart" type:"string"`
- // Map of methods for this resource, which is included only if the request uses
- // the embed query option.
- ResourceMethods map[string]*Method `locationName:"resourceMethods" type:"map"`
- }
- // String returns the string representation
- func (s Resource) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Resource) GoString() string {
- return s.String()
- }
- // Represents a REST API.
- type RestApi struct {
- _ struct{} `type:"structure"`
- // The date when the API was created, in ISO 8601 format (http://www.iso.org/iso/home/standards/iso8601.htm"
- // target="_blank).
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
- // The API's description.
- Description *string `locationName:"description" type:"string"`
- // The API's identifier. This identifier is unique across all of your APIs in
- // Amazon API Gateway.
- Id *string `locationName:"id" type:"string"`
- // The API's name.
- Name *string `locationName:"name" type:"string"`
- Warnings []*string `locationName:"warnings" type:"list"`
- }
- // String returns the string representation
- func (s RestApi) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RestApi) GoString() string {
- return s.String()
- }
- // Represents a unique identifier for a version of a deployed RestApi that is
- // callable by users.
- type Stage struct {
- _ struct{} `type:"structure"`
- // Specifies whether a cache cluster is enabled for the stage.
- CacheClusterEnabled *bool `locationName:"cacheClusterEnabled" type:"boolean"`
- // The size of the cache cluster for the stage, if enabled.
- CacheClusterSize *string `locationName:"cacheClusterSize" type:"string" enum:"CacheClusterSize"`
- // The status of the cache cluster for the stage, if enabled.
- CacheClusterStatus *string `locationName:"cacheClusterStatus" type:"string" enum:"CacheClusterStatus"`
- ClientCertificateId *string `locationName:"clientCertificateId" type:"string"`
- // The date and time that the stage was created, in ISO 8601 format (http://www.iso.org/iso/home/standards/iso8601.htm"
- // target="_blank).
- CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`
- // The identifier of the Deployment that the stage points to.
- DeploymentId *string `locationName:"deploymentId" type:"string"`
- // The stage's description.
- Description *string `locationName:"description" type:"string"`
- // The date and time that information about the stage was last updated, in ISO
- // 8601 format (http://www.iso.org/iso/home/standards/iso8601.htm" target="_blank).
- LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix"`
- // A map that defines the method settings for a Stage resource. Keys are defined
- // as {resource_path}/{http_method} for an individual method override, or \*/\*
- // for the settings applied to all methods in the stage.
- MethodSettings map[string]*MethodSetting `locationName:"methodSettings" type:"map"`
- // The name of the stage is the first path segment in the Uniform Resource Identifier
- // (URI) of a call to Amazon API Gateway.
- StageName *string `locationName:"stageName" type:"string"`
- // A map that defines the stage variables for a Stage resource. Variable names
- // can have alphanumeric characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+.
- Variables map[string]*string `locationName:"variables" type:"map"`
- }
- // String returns the string representation
- func (s Stage) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Stage) GoString() string {
- return s.String()
- }
- // A reference to a unique stage identified in the format {restApiId}/{stage}.
- type StageKey struct {
- _ struct{} `type:"structure"`
- // A list of Stage resources that are associated with the ApiKey resource.
- RestApiId *string `locationName:"restApiId" type:"string"`
- // The stage name in the RestApi that the stage key references.
- StageName *string `locationName:"stageName" type:"string"`
- }
- // String returns the string representation
- func (s StageKey) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StageKey) GoString() string {
- return s.String()
- }
- // Make a request to simulate the execution of an Authorizer.
- type TestInvokeAuthorizerInput struct {
- _ struct{} `type:"structure"`
- // [Optional] A key-value map of additional context variables.
- AdditionalContext map[string]*string `locationName:"additionalContext" type:"map"`
- // Specifies a test invoke authorizer request's Authorizer ID.
- AuthorizerId *string `location:"uri" locationName:"authorizer_id" type:"string" required:"true"`
- // [Optional] The simulated request body of an incoming invocation request.
- Body *string `locationName:"body" type:"string"`
- // [Required] A key-value map of headers to simulate an incoming invocation
- // request. This is where the incoming authorization token, or identity source,
- // should be specified.
- Headers map[string]*string `locationName:"headers" type:"map"`
- // [Optional] The URI path, including query string, of the simulated invocation
- // request. Use this to specify path parameters and query string parameters.
- PathWithQueryString *string `locationName:"pathWithQueryString" type:"string"`
- // Specifies a test invoke authorizer request's RestApi identifier.
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- // A key-value map of stage variables to simulate an invocation on a deployed
- // Stage.
- StageVariables map[string]*string `locationName:"stageVariables" type:"map"`
- }
- // String returns the string representation
- func (s TestInvokeAuthorizerInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TestInvokeAuthorizerInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *TestInvokeAuthorizerInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "TestInvokeAuthorizerInput"}
- if s.AuthorizerId == nil {
- invalidParams.Add(request.NewErrParamRequired("AuthorizerId"))
- }
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the response of the test invoke request in for a custom Authorizer
- type TestInvokeAuthorizerOutput struct {
- _ struct{} `type:"structure"`
- Authorization map[string][]*string `locationName:"authorization" type:"map"`
- Claims map[string]*string `locationName:"claims" type:"map"`
- // The HTTP status code that the client would have received. Value is 0 if the
- // authorizer succeeded.
- ClientStatus *int64 `locationName:"clientStatus" type:"integer"`
- // The execution latency of the test authorizer request
- Latency *int64 `locationName:"latency" type:"long"`
- // The Amazon API Gateway execution log for the test authorizer request.
- Log *string `locationName:"log" type:"string"`
- // The policy JSON document returned by the Authorizer
- Policy *string `locationName:"policy" type:"string"`
- // The principal identity returned by the Authorizer
- PrincipalId *string `locationName:"principalId" type:"string"`
- }
- // String returns the string representation
- func (s TestInvokeAuthorizerOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TestInvokeAuthorizerOutput) GoString() string {
- return s.String()
- }
- // Make a request to simulate the execution of a Method.
- type TestInvokeMethodInput struct {
- _ struct{} `type:"structure"`
- // The simulated request body of an incoming invocation request.
- Body *string `locationName:"body" type:"string"`
- // A ClientCertificate identifier to use in the test invocation. API Gateway
- // will use use the certificate when making the HTTPS request to the defined
- // backend endpoint.
- ClientCertificateId *string `locationName:"clientCertificateId" type:"string"`
- // A key-value map of headers to simulate an incoming invocation request.
- Headers map[string]*string `locationName:"headers" type:"map"`
- // Specifies a test invoke method request's HTTP method.
- HttpMethod *string `location:"uri" locationName:"http_method" type:"string" required:"true"`
- // The URI path, including query string, of the simulated invocation request.
- // Use this to specify path parameters and query string parameters.
- PathWithQueryString *string `locationName:"pathWithQueryString" type:"string"`
- // Specifies a test invoke method request's resource ID.
- ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"`
- // Specifies a test invoke method request's API identifier.
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- // A key-value map of stage variables to simulate an invocation on a deployed
- // Stage.
- StageVariables map[string]*string `locationName:"stageVariables" type:"map"`
- }
- // String returns the string representation
- func (s TestInvokeMethodInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TestInvokeMethodInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *TestInvokeMethodInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "TestInvokeMethodInput"}
- if s.HttpMethod == nil {
- invalidParams.Add(request.NewErrParamRequired("HttpMethod"))
- }
- if s.ResourceId == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceId"))
- }
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the response of the test invoke request in HTTP method.
- type TestInvokeMethodOutput struct {
- _ struct{} `type:"structure"`
- // The body of HTTP response.
- Body *string `locationName:"body" type:"string"`
- // The headers of HTTP response.
- Headers map[string]*string `locationName:"headers" type:"map"`
- // The execution latency of the test invoke request.
- Latency *int64 `locationName:"latency" type:"long"`
- // The Amazon API Gateway execution log for the test invoke request.
- Log *string `locationName:"log" type:"string"`
- // The HTTP status code.
- Status *int64 `locationName:"status" type:"integer"`
- }
- // String returns the string representation
- func (s TestInvokeMethodOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TestInvokeMethodOutput) GoString() string {
- return s.String()
- }
- // Returns the throttle settings.
- type ThrottleSettings struct {
- _ struct{} `type:"structure"`
- // Returns the burstLimit when ThrottleSettings is called.
- BurstLimit *int64 `locationName:"burstLimit" type:"integer"`
- // Returns the rateLimit when ThrottleSettings is called.
- RateLimit *float64 `locationName:"rateLimit" type:"double"`
- }
- // String returns the string representation
- func (s ThrottleSettings) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ThrottleSettings) GoString() string {
- return s.String()
- }
- // Requests Amazon API Gateway to change information about the current Account
- // resource.
- type UpdateAccountInput struct {
- _ struct{} `type:"structure"`
- // A list of operations describing the updates to apply to the specified resource.
- // The patches are applied in the order specified in the list.
- PatchOperations []*PatchOperation `locationName:"patchOperations" type:"list"`
- }
- // String returns the string representation
- func (s UpdateAccountInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateAccountInput) GoString() string {
- return s.String()
- }
- // A request to change information about an ApiKey resource.
- type UpdateApiKeyInput struct {
- _ struct{} `type:"structure"`
- // The identifier of the ApiKey resource to be updated.
- ApiKey *string `location:"uri" locationName:"api_Key" type:"string" required:"true"`
- // A list of operations describing the updates to apply to the specified resource.
- // The patches are applied in the order specified in the list.
- PatchOperations []*PatchOperation `locationName:"patchOperations" type:"list"`
- }
- // String returns the string representation
- func (s UpdateApiKeyInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateApiKeyInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateApiKeyInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateApiKeyInput"}
- if s.ApiKey == nil {
- invalidParams.Add(request.NewErrParamRequired("ApiKey"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Request to update an existing Authorizer resource.
- type UpdateAuthorizerInput struct {
- _ struct{} `type:"structure"`
- // The identifier of the Authorizer resource.
- AuthorizerId *string `location:"uri" locationName:"authorizer_id" type:"string" required:"true"`
- // A list of operations describing the updates to apply to the specified resource.
- // The patches are applied in the order specified in the list.
- PatchOperations []*PatchOperation `locationName:"patchOperations" type:"list"`
- // The RestApi identifier for the Authorizer resource.
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s UpdateAuthorizerInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateAuthorizerInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateAuthorizerInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateAuthorizerInput"}
- if s.AuthorizerId == nil {
- invalidParams.Add(request.NewErrParamRequired("AuthorizerId"))
- }
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A request to change information about the BasePathMapping resource.
- type UpdateBasePathMappingInput struct {
- _ struct{} `type:"structure"`
- // The base path of the BasePathMapping resource to change.
- BasePath *string `location:"uri" locationName:"base_path" type:"string" required:"true"`
- // The domain name of the BasePathMapping resource to change.
- DomainName *string `location:"uri" locationName:"domain_name" type:"string" required:"true"`
- // A list of operations describing the updates to apply to the specified resource.
- // The patches are applied in the order specified in the list.
- PatchOperations []*PatchOperation `locationName:"patchOperations" type:"list"`
- }
- // String returns the string representation
- func (s UpdateBasePathMappingInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateBasePathMappingInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateBasePathMappingInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateBasePathMappingInput"}
- if s.BasePath == nil {
- invalidParams.Add(request.NewErrParamRequired("BasePath"))
- }
- if s.DomainName == nil {
- invalidParams.Add(request.NewErrParamRequired("DomainName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A request to change information about an ClientCertificate resource.
- type UpdateClientCertificateInput struct {
- _ struct{} `type:"structure"`
- // The identifier of the ClientCertificate resource to be updated.
- ClientCertificateId *string `location:"uri" locationName:"clientcertificate_id" type:"string" required:"true"`
- // A list of operations describing the updates to apply to the specified resource.
- // The patches are applied in the order specified in the list.
- PatchOperations []*PatchOperation `locationName:"patchOperations" type:"list"`
- }
- // String returns the string representation
- func (s UpdateClientCertificateInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateClientCertificateInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateClientCertificateInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateClientCertificateInput"}
- if s.ClientCertificateId == nil {
- invalidParams.Add(request.NewErrParamRequired("ClientCertificateId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Requests Amazon API Gateway to change information about a Deployment resource.
- type UpdateDeploymentInput struct {
- _ struct{} `type:"structure"`
- // The replacment identifier for the Deployment resource to change information
- // about.
- DeploymentId *string `location:"uri" locationName:"deployment_id" type:"string" required:"true"`
- // A list of operations describing the updates to apply to the specified resource.
- // The patches are applied in the order specified in the list.
- PatchOperations []*PatchOperation `locationName:"patchOperations" type:"list"`
- // The replacement identifier of the RestApi resource for the Deployment resource
- // to change information about.
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s UpdateDeploymentInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateDeploymentInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateDeploymentInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateDeploymentInput"}
- if s.DeploymentId == nil {
- invalidParams.Add(request.NewErrParamRequired("DeploymentId"))
- }
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A request to change information about the DomainName resource.
- type UpdateDomainNameInput struct {
- _ struct{} `type:"structure"`
- // The name of the DomainName resource to be changed.
- DomainName *string `location:"uri" locationName:"domain_name" type:"string" required:"true"`
- // A list of operations describing the updates to apply to the specified resource.
- // The patches are applied in the order specified in the list.
- PatchOperations []*PatchOperation `locationName:"patchOperations" type:"list"`
- }
- // String returns the string representation
- func (s UpdateDomainNameInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateDomainNameInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateDomainNameInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateDomainNameInput"}
- if s.DomainName == nil {
- invalidParams.Add(request.NewErrParamRequired("DomainName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents an update integration request.
- type UpdateIntegrationInput struct {
- _ struct{} `type:"structure"`
- // Represents an update integration request's HTTP method.
- HttpMethod *string `location:"uri" locationName:"http_method" type:"string" required:"true"`
- // A list of operations describing the updates to apply to the specified resource.
- // The patches are applied in the order specified in the list.
- PatchOperations []*PatchOperation `locationName:"patchOperations" type:"list"`
- // Represents an update integration request's resource identifier.
- ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"`
- // Represents an update integration request's API identifier.
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s UpdateIntegrationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateIntegrationInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateIntegrationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateIntegrationInput"}
- if s.HttpMethod == nil {
- invalidParams.Add(request.NewErrParamRequired("HttpMethod"))
- }
- if s.ResourceId == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceId"))
- }
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents an update integration response request.
- type UpdateIntegrationResponseInput struct {
- _ struct{} `type:"structure"`
- // Specifies an update integration response request's HTTP method.
- HttpMethod *string `location:"uri" locationName:"http_method" type:"string" required:"true"`
- // A list of operations describing the updates to apply to the specified resource.
- // The patches are applied in the order specified in the list.
- PatchOperations []*PatchOperation `locationName:"patchOperations" type:"list"`
- // Specifies an update integration response request's resource identifier.
- ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"`
- // Specifies an update integration response request's API identifier.
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- // Specifies an update integration response request's status code.
- StatusCode *string `location:"uri" locationName:"status_code" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s UpdateIntegrationResponseInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateIntegrationResponseInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateIntegrationResponseInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateIntegrationResponseInput"}
- if s.HttpMethod == nil {
- invalidParams.Add(request.NewErrParamRequired("HttpMethod"))
- }
- if s.ResourceId == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceId"))
- }
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if s.StatusCode == nil {
- invalidParams.Add(request.NewErrParamRequired("StatusCode"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Request to update an existing Method resource.
- type UpdateMethodInput struct {
- _ struct{} `type:"structure"`
- // The HTTP verb that identifies the Method resource.
- HttpMethod *string `location:"uri" locationName:"http_method" type:"string" required:"true"`
- // A list of operations describing the updates to apply to the specified resource.
- // The patches are applied in the order specified in the list.
- PatchOperations []*PatchOperation `locationName:"patchOperations" type:"list"`
- // The Resource identifier for the Method resource.
- ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"`
- // The RestApi identifier for the Method resource.
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s UpdateMethodInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateMethodInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateMethodInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateMethodInput"}
- if s.HttpMethod == nil {
- invalidParams.Add(request.NewErrParamRequired("HttpMethod"))
- }
- if s.ResourceId == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceId"))
- }
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A request to update an existing MethodResponse resource.
- type UpdateMethodResponseInput struct {
- _ struct{} `type:"structure"`
- // The HTTP verb identifier for the parent Method resource.
- HttpMethod *string `location:"uri" locationName:"http_method" type:"string" required:"true"`
- // A list of operations describing the updates to apply to the specified resource.
- // The patches are applied in the order specified in the list.
- PatchOperations []*PatchOperation `locationName:"patchOperations" type:"list"`
- // The Resource identifier for the MethodResponse resource.
- ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"`
- // The RestApi identifier for the MethodResponse resource.
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- // The status code identifier for the MethodResponse resource.
- StatusCode *string `location:"uri" locationName:"status_code" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s UpdateMethodResponseInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateMethodResponseInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateMethodResponseInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateMethodResponseInput"}
- if s.HttpMethod == nil {
- invalidParams.Add(request.NewErrParamRequired("HttpMethod"))
- }
- if s.ResourceId == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceId"))
- }
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if s.StatusCode == nil {
- invalidParams.Add(request.NewErrParamRequired("StatusCode"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Request to update an existing model in an existing RestApi resource.
- type UpdateModelInput struct {
- _ struct{} `type:"structure"`
- // The name of the model to update.
- ModelName *string `location:"uri" locationName:"model_name" type:"string" required:"true"`
- // A list of operations describing the updates to apply to the specified resource.
- // The patches are applied in the order specified in the list.
- PatchOperations []*PatchOperation `locationName:"patchOperations" type:"list"`
- // The RestApi identifier under which the model exists.
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s UpdateModelInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateModelInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateModelInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateModelInput"}
- if s.ModelName == nil {
- invalidParams.Add(request.NewErrParamRequired("ModelName"))
- }
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Request to change information about a Resource resource.
- type UpdateResourceInput struct {
- _ struct{} `type:"structure"`
- // A list of operations describing the updates to apply to the specified resource.
- // The patches are applied in the order specified in the list.
- PatchOperations []*PatchOperation `locationName:"patchOperations" type:"list"`
- // The identifier of the Resource resource.
- ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"`
- // The RestApi identifier for the Resource resource.
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s UpdateResourceInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateResourceInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateResourceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateResourceInput"}
- if s.ResourceId == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceId"))
- }
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Request to update an existing RestApi resource in your collection.
- type UpdateRestApiInput struct {
- _ struct{} `type:"structure"`
- // A list of operations describing the updates to apply to the specified resource.
- // The patches are applied in the order specified in the list.
- PatchOperations []*PatchOperation `locationName:"patchOperations" type:"list"`
- // The ID of the RestApi you want to update.
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s UpdateRestApiInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateRestApiInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateRestApiInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateRestApiInput"}
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Requests Amazon API Gateway to change information about a Stage resource.
- type UpdateStageInput struct {
- _ struct{} `type:"structure"`
- // A list of operations describing the updates to apply to the specified resource.
- // The patches are applied in the order specified in the list.
- PatchOperations []*PatchOperation `locationName:"patchOperations" type:"list"`
- // The identifier of the RestApi resource for the Stage resource to change information
- // about.
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- // The name of the Stage resource to change information about.
- StageName *string `location:"uri" locationName:"stage_name" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s UpdateStageInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateStageInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateStageInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateStageInput"}
- if s.RestApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("RestApiId"))
- }
- if s.StageName == nil {
- invalidParams.Add(request.NewErrParamRequired("StageName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The authorizer type. Only current value is TOKEN.
- const (
- // @enum AuthorizerType
- AuthorizerTypeToken = "TOKEN"
- // @enum AuthorizerType
- AuthorizerTypeCognitoUserPools = "COGNITO_USER_POOLS"
- )
- // Returns the size of the CacheCluster.
- const (
- // @enum CacheClusterSize
- CacheClusterSize05 = "0.5"
- // @enum CacheClusterSize
- CacheClusterSize16 = "1.6"
- // @enum CacheClusterSize
- CacheClusterSize61 = "6.1"
- // @enum CacheClusterSize
- CacheClusterSize135 = "13.5"
- // @enum CacheClusterSize
- CacheClusterSize284 = "28.4"
- // @enum CacheClusterSize
- CacheClusterSize582 = "58.2"
- // @enum CacheClusterSize
- CacheClusterSize118 = "118"
- // @enum CacheClusterSize
- CacheClusterSize237 = "237"
- )
- // Returns the status of the CacheCluster.
- const (
- // @enum CacheClusterStatus
- CacheClusterStatusCreateInProgress = "CREATE_IN_PROGRESS"
- // @enum CacheClusterStatus
- CacheClusterStatusAvailable = "AVAILABLE"
- // @enum CacheClusterStatus
- CacheClusterStatusDeleteInProgress = "DELETE_IN_PROGRESS"
- // @enum CacheClusterStatus
- CacheClusterStatusNotAvailable = "NOT_AVAILABLE"
- // @enum CacheClusterStatus
- CacheClusterStatusFlushInProgress = "FLUSH_IN_PROGRESS"
- )
- // The integration type. The valid value is HTTP, AWS, or MOCK.
- const (
- // @enum IntegrationType
- IntegrationTypeHttp = "HTTP"
- // @enum IntegrationType
- IntegrationTypeAws = "AWS"
- // @enum IntegrationType
- IntegrationTypeMock = "MOCK"
- )
- const (
- // @enum PutMode
- PutModeMerge = "merge"
- // @enum PutMode
- PutModeOverwrite = "overwrite"
- )
- const (
- // @enum UnauthorizedCacheControlHeaderStrategy
- UnauthorizedCacheControlHeaderStrategyFailWith403 = "FAIL_WITH_403"
- // @enum UnauthorizedCacheControlHeaderStrategy
- UnauthorizedCacheControlHeaderStrategySucceedWithResponseHeader = "SUCCEED_WITH_RESPONSE_HEADER"
- // @enum UnauthorizedCacheControlHeaderStrategy
- UnauthorizedCacheControlHeaderStrategySucceedWithoutResponseHeader = "SUCCEED_WITHOUT_RESPONSE_HEADER"
- )
- const (
- // @enum op
- OpAdd = "add"
- // @enum op
- OpRemove = "remove"
- // @enum op
- OpReplace = "replace"
- // @enum op
- OpMove = "move"
- // @enum op
- OpCopy = "copy"
- // @enum op
- OpTest = "test"
- )
|