12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132 |
- // 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.
- //
- // See CreateApiKey for usage and error information.
- //
- // 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
- }
- // CreateApiKey API operation for Amazon API Gateway.
- //
- // Create an ApiKey resource.
- //
- // AWS CLI (http://docs.aws.amazon.com/cli/latest/reference/apigateway/create-api-key.html)
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation CreateApiKey for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * TooManyRequestsException
- //
- // * LimitExceededException
- //
- // * BadRequestException
- //
- // * ConflictException
- //
- 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.
- //
- // See CreateAuthorizer for usage and error information.
- //
- // 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
- }
- // CreateAuthorizer API operation for Amazon API Gateway.
- //
- // Adds a new Authorizer resource to an existing RestApi resource.
- //
- // AWS CLI (http://docs.aws.amazon.com/cli/latest/reference/apigateway/create-authorizer.html)
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation CreateAuthorizer for usage and error information.
- //
- // Returned Error Codes:
- // * BadRequestException
- //
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * LimitExceededException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See CreateBasePathMapping for usage and error information.
- //
- // 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
- }
- // CreateBasePathMapping API operation for Amazon API Gateway.
- //
- // Creates a new BasePathMapping resource.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation CreateBasePathMapping for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * ConflictException
- //
- // * BadRequestException
- //
- // * NotFoundException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See CreateDeployment for usage and error information.
- //
- // 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
- }
- // CreateDeployment API operation for Amazon API Gateway.
- //
- // Creates a Deployment resource, which makes a specified RestApi callable over
- // the internet.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation CreateDeployment for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * BadRequestException
- //
- // * NotFoundException
- //
- // * ConflictException
- //
- // * LimitExceededException
- //
- // * TooManyRequestsException
- //
- // * ServiceUnavailableException
- //
- 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.
- //
- // See CreateDomainName for usage and error information.
- //
- // 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
- }
- // CreateDomainName API operation for Amazon API Gateway.
- //
- // Creates a new domain name.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation CreateDomainName for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * BadRequestException
- //
- // * ConflictException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See CreateModel for usage and error information.
- //
- // 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
- }
- // CreateModel API operation for Amazon API Gateway.
- //
- // Adds a new Model resource to an existing RestApi resource.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation CreateModel for usage and error information.
- //
- // Returned Error Codes:
- // * BadRequestException
- //
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * ConflictException
- //
- // * LimitExceededException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See CreateResource for usage and error information.
- //
- // 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
- }
- // CreateResource API operation for Amazon API Gateway.
- //
- // Creates a Resource resource.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation CreateResource for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * ConflictException
- //
- // * LimitExceededException
- //
- // * BadRequestException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See CreateRestApi for usage and error information.
- //
- // 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
- }
- // CreateRestApi API operation for Amazon API Gateway.
- //
- // Creates a new RestApi resource.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation CreateRestApi for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * LimitExceededException
- //
- // * BadRequestException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See CreateStage for usage and error information.
- //
- // 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
- }
- // CreateStage API operation for Amazon API Gateway.
- //
- // Creates a new Stage resource that references a pre-existing Deployment for
- // the API.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation CreateStage for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * BadRequestException
- //
- // * NotFoundException
- //
- // * ConflictException
- //
- // * LimitExceededException
- //
- // * TooManyRequestsException
- //
- func (c *APIGateway) CreateStage(input *CreateStageInput) (*Stage, error) {
- req, out := c.CreateStageRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateUsagePlan = "CreateUsagePlan"
- // CreateUsagePlanRequest generates a "aws/request.Request" representing the
- // client's request for the CreateUsagePlan operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See CreateUsagePlan for usage and error information.
- //
- // 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 CreateUsagePlan 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 CreateUsagePlanRequest method.
- // req, resp := client.CreateUsagePlanRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) CreateUsagePlanRequest(input *CreateUsagePlanInput) (req *request.Request, output *UsagePlan) {
- op := &request.Operation{
- Name: opCreateUsagePlan,
- HTTPMethod: "POST",
- HTTPPath: "/usageplans",
- }
- if input == nil {
- input = &CreateUsagePlanInput{}
- }
- req = c.newRequest(op, input, output)
- output = &UsagePlan{}
- req.Data = output
- return
- }
- // CreateUsagePlan API operation for Amazon API Gateway.
- //
- // Creates a usage plan with the throttle and quota limits, as well as the associated
- // API stages, specified in the payload.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation CreateUsagePlan for usage and error information.
- //
- // Returned Error Codes:
- // * BadRequestException
- //
- // * UnauthorizedException
- //
- // * TooManyRequestsException
- //
- // * LimitExceededException
- //
- // * ConflictException
- //
- func (c *APIGateway) CreateUsagePlan(input *CreateUsagePlanInput) (*UsagePlan, error) {
- req, out := c.CreateUsagePlanRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateUsagePlanKey = "CreateUsagePlanKey"
- // CreateUsagePlanKeyRequest generates a "aws/request.Request" representing the
- // client's request for the CreateUsagePlanKey operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See CreateUsagePlanKey for usage and error information.
- //
- // 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 CreateUsagePlanKey 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 CreateUsagePlanKeyRequest method.
- // req, resp := client.CreateUsagePlanKeyRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) CreateUsagePlanKeyRequest(input *CreateUsagePlanKeyInput) (req *request.Request, output *UsagePlanKey) {
- op := &request.Operation{
- Name: opCreateUsagePlanKey,
- HTTPMethod: "POST",
- HTTPPath: "/usageplans/{usageplanId}/keys",
- }
- if input == nil {
- input = &CreateUsagePlanKeyInput{}
- }
- req = c.newRequest(op, input, output)
- output = &UsagePlanKey{}
- req.Data = output
- return
- }
- // CreateUsagePlanKey API operation for Amazon API Gateway.
- //
- // Creates a usage plan key for adding an existing API key to a usage plan.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation CreateUsagePlanKey for usage and error information.
- //
- // Returned Error Codes:
- // * BadRequestException
- //
- // * ConflictException
- //
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * TooManyRequestsException
- //
- func (c *APIGateway) CreateUsagePlanKey(input *CreateUsagePlanKeyInput) (*UsagePlanKey, error) {
- req, out := c.CreateUsagePlanKeyRequest(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.
- //
- // See DeleteApiKey for usage and error information.
- //
- // 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
- }
- // DeleteApiKey API operation for Amazon API Gateway.
- //
- // Deletes the ApiKey resource.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation DeleteApiKey for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See DeleteAuthorizer for usage and error information.
- //
- // 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
- }
- // DeleteAuthorizer API operation for Amazon API Gateway.
- //
- // Deletes an existing Authorizer resource.
- //
- // AWS CLI (http://docs.aws.amazon.com/cli/latest/reference/apigateway/delete-authorizer.html)
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation DeleteAuthorizer for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * TooManyRequestsException
- //
- // * BadRequestException
- //
- // * ConflictException
- //
- 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.
- //
- // See DeleteBasePathMapping for usage and error information.
- //
- // 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
- }
- // DeleteBasePathMapping API operation for Amazon API Gateway.
- //
- // Deletes the BasePathMapping resource.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation DeleteBasePathMapping for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See DeleteClientCertificate for usage and error information.
- //
- // 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
- }
- // DeleteClientCertificate API operation for Amazon API Gateway.
- //
- // Deletes the ClientCertificate resource.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation DeleteClientCertificate for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * TooManyRequestsException
- //
- // * BadRequestException
- //
- // * NotFoundException
- //
- 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.
- //
- // See DeleteDeployment for usage and error information.
- //
- // 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
- }
- // DeleteDeployment API operation for Amazon API Gateway.
- //
- // Deletes a Deployment resource. Deleting a deployment will only succeed if
- // there are no Stage resources associated with it.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation DeleteDeployment for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * BadRequestException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See DeleteDomainName for usage and error information.
- //
- // 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
- }
- // DeleteDomainName API operation for Amazon API Gateway.
- //
- // Deletes the DomainName resource.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation DeleteDomainName for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See DeleteIntegration for usage and error information.
- //
- // 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
- }
- // DeleteIntegration API operation for Amazon API Gateway.
- //
- // Represents a delete integration.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation DeleteIntegration for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * TooManyRequestsException
- //
- // * ConflictException
- //
- 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.
- //
- // See DeleteIntegrationResponse for usage and error information.
- //
- // 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
- }
- // DeleteIntegrationResponse API operation for Amazon API Gateway.
- //
- // Represents a delete integration response.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation DeleteIntegrationResponse for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * TooManyRequestsException
- //
- // * BadRequestException
- //
- // * ConflictException
- //
- 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.
- //
- // See DeleteMethod for usage and error information.
- //
- // 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
- }
- // DeleteMethod API operation for Amazon API Gateway.
- //
- // Deletes an existing Method resource.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation DeleteMethod for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * TooManyRequestsException
- //
- // * ConflictException
- //
- 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.
- //
- // See DeleteMethodResponse for usage and error information.
- //
- // 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
- }
- // DeleteMethodResponse API operation for Amazon API Gateway.
- //
- // Deletes an existing MethodResponse resource.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation DeleteMethodResponse for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * TooManyRequestsException
- //
- // * BadRequestException
- //
- // * ConflictException
- //
- 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.
- //
- // See DeleteModel for usage and error information.
- //
- // 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
- }
- // DeleteModel API operation for Amazon API Gateway.
- //
- // Deletes a model.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation DeleteModel for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * TooManyRequestsException
- //
- // * BadRequestException
- //
- // * ConflictException
- //
- 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.
- //
- // See DeleteResource for usage and error information.
- //
- // 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
- }
- // DeleteResource API operation for Amazon API Gateway.
- //
- // Deletes a Resource resource.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation DeleteResource for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * BadRequestException
- //
- // * ConflictException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See DeleteRestApi for usage and error information.
- //
- // 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
- }
- // DeleteRestApi API operation for Amazon API Gateway.
- //
- // Deletes the specified API.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation DeleteRestApi for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * TooManyRequestsException
- //
- // * BadRequestException
- //
- 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.
- //
- // See DeleteStage for usage and error information.
- //
- // 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
- }
- // DeleteStage API operation for Amazon API Gateway.
- //
- // Deletes a Stage resource.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation DeleteStage for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * TooManyRequestsException
- //
- // * BadRequestException
- //
- func (c *APIGateway) DeleteStage(input *DeleteStageInput) (*DeleteStageOutput, error) {
- req, out := c.DeleteStageRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteUsagePlan = "DeleteUsagePlan"
- // DeleteUsagePlanRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteUsagePlan operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See DeleteUsagePlan for usage and error information.
- //
- // 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 DeleteUsagePlan 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 DeleteUsagePlanRequest method.
- // req, resp := client.DeleteUsagePlanRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) DeleteUsagePlanRequest(input *DeleteUsagePlanInput) (req *request.Request, output *DeleteUsagePlanOutput) {
- op := &request.Operation{
- Name: opDeleteUsagePlan,
- HTTPMethod: "DELETE",
- HTTPPath: "/usageplans/{usageplanId}",
- }
- if input == nil {
- input = &DeleteUsagePlanInput{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &DeleteUsagePlanOutput{}
- req.Data = output
- return
- }
- // DeleteUsagePlan API operation for Amazon API Gateway.
- //
- // Deletes a usage plan of a given plan Id.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation DeleteUsagePlan for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * TooManyRequestsException
- //
- // * BadRequestException
- //
- // * NotFoundException
- //
- func (c *APIGateway) DeleteUsagePlan(input *DeleteUsagePlanInput) (*DeleteUsagePlanOutput, error) {
- req, out := c.DeleteUsagePlanRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteUsagePlanKey = "DeleteUsagePlanKey"
- // DeleteUsagePlanKeyRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteUsagePlanKey operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See DeleteUsagePlanKey for usage and error information.
- //
- // 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 DeleteUsagePlanKey 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 DeleteUsagePlanKeyRequest method.
- // req, resp := client.DeleteUsagePlanKeyRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) DeleteUsagePlanKeyRequest(input *DeleteUsagePlanKeyInput) (req *request.Request, output *DeleteUsagePlanKeyOutput) {
- op := &request.Operation{
- Name: opDeleteUsagePlanKey,
- HTTPMethod: "DELETE",
- HTTPPath: "/usageplans/{usageplanId}/keys/{keyId}",
- }
- if input == nil {
- input = &DeleteUsagePlanKeyInput{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &DeleteUsagePlanKeyOutput{}
- req.Data = output
- return
- }
- // DeleteUsagePlanKey API operation for Amazon API Gateway.
- //
- // Deletes a usage plan key and remove the underlying API key from the associated
- // usage plan.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation DeleteUsagePlanKey for usage and error information.
- //
- // Returned Error Codes:
- // * BadRequestException
- //
- // * ConflictException
- //
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * TooManyRequestsException
- //
- func (c *APIGateway) DeleteUsagePlanKey(input *DeleteUsagePlanKeyInput) (*DeleteUsagePlanKeyOutput, error) {
- req, out := c.DeleteUsagePlanKeyRequest(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.
- //
- // See FlushStageAuthorizersCache for usage and error information.
- //
- // 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
- }
- // FlushStageAuthorizersCache API operation for Amazon API Gateway.
- //
- // Flushes all authorizer cache entries on a stage.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation FlushStageAuthorizersCache for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * BadRequestException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See FlushStageCache for usage and error information.
- //
- // 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
- }
- // FlushStageCache API operation for Amazon API Gateway.
- //
- // Flushes a stage's cache.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation FlushStageCache for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * BadRequestException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See GenerateClientCertificate for usage and error information.
- //
- // 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
- }
- // GenerateClientCertificate API operation for Amazon API Gateway.
- //
- // Generates a ClientCertificate resource.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation GenerateClientCertificate for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * TooManyRequestsException
- //
- // * LimitExceededException
- //
- 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.
- //
- // See GetAccount for usage and error information.
- //
- // 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
- }
- // GetAccount API operation for Amazon API Gateway.
- //
- // Gets information about the current Account resource.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation GetAccount for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See GetApiKey for usage and error information.
- //
- // 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
- }
- // GetApiKey API operation for Amazon API Gateway.
- //
- // Gets information about the current ApiKey resource.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation GetApiKey for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See GetApiKeys for usage and error information.
- //
- // 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
- }
- // GetApiKeys API operation for Amazon API Gateway.
- //
- // Gets information about the current ApiKeys resource.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation GetApiKeys for usage and error information.
- //
- // Returned Error Codes:
- // * BadRequestException
- //
- // * UnauthorizedException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See GetAuthorizer for usage and error information.
- //
- // 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
- }
- // GetAuthorizer API operation for Amazon API Gateway.
- //
- // Describe an existing Authorizer resource.
- //
- // AWS CLI (http://docs.aws.amazon.com/cli/latest/reference/apigateway/get-authorizer.html)
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation GetAuthorizer for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See GetAuthorizers for usage and error information.
- //
- // 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
- }
- // GetAuthorizers API operation for Amazon API Gateway.
- //
- // Describe an existing Authorizers resource.
- //
- // AWS CLI (http://docs.aws.amazon.com/cli/latest/reference/apigateway/get-authorizers.html)
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation GetAuthorizers for usage and error information.
- //
- // Returned Error Codes:
- // * BadRequestException
- //
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See GetBasePathMapping for usage and error information.
- //
- // 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
- }
- // GetBasePathMapping API operation for Amazon API Gateway.
- //
- // Describe a BasePathMapping resource.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation GetBasePathMapping for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See GetBasePathMappings for usage and error information.
- //
- // 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
- }
- // GetBasePathMappings API operation for Amazon API Gateway.
- //
- // Represents a collection of BasePathMapping resources.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation GetBasePathMappings for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See GetClientCertificate for usage and error information.
- //
- // 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
- }
- // GetClientCertificate API operation for Amazon API Gateway.
- //
- // Gets information about the current ClientCertificate resource.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation GetClientCertificate for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See GetClientCertificates for usage and error information.
- //
- // 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
- }
- // GetClientCertificates API operation for Amazon API Gateway.
- //
- // Gets a collection of ClientCertificate resources.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation GetClientCertificates for usage and error information.
- //
- // Returned Error Codes:
- // * BadRequestException
- //
- // * UnauthorizedException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See GetDeployment for usage and error information.
- //
- // 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
- }
- // GetDeployment API operation for Amazon API Gateway.
- //
- // Gets information about a Deployment resource.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation GetDeployment for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * TooManyRequestsException
- //
- // * ServiceUnavailableException
- //
- 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.
- //
- // See GetDeployments for usage and error information.
- //
- // 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
- }
- // GetDeployments API operation for Amazon API Gateway.
- //
- // Gets information about a Deployments collection.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation GetDeployments for usage and error information.
- //
- // Returned Error Codes:
- // * BadRequestException
- //
- // * UnauthorizedException
- //
- // * TooManyRequestsException
- //
- // * ServiceUnavailableException
- //
- 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.
- //
- // See GetDomainName for usage and error information.
- //
- // 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
- }
- // GetDomainName API operation for Amazon API Gateway.
- //
- // Represents a domain name that is contained in a simpler, more intuitive URL
- // that can be called.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation GetDomainName for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * ServiceUnavailableException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See GetDomainNames for usage and error information.
- //
- // 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
- }
- // GetDomainNames API operation for Amazon API Gateway.
- //
- // Represents a collection of DomainName resources.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation GetDomainNames for usage and error information.
- //
- // Returned Error Codes:
- // * BadRequestException
- //
- // * UnauthorizedException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See GetExport for usage and error information.
- //
- // 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
- }
- // GetExport API operation for Amazon API Gateway.
- //
- // Exports a deployed version of a RestApi in a specified format.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation GetExport for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * BadRequestException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See GetIntegration for usage and error information.
- //
- // 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
- }
- // GetIntegration API operation for Amazon API Gateway.
- //
- // Represents a get integration.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation GetIntegration for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See GetIntegrationResponse for usage and error information.
- //
- // 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
- }
- // GetIntegrationResponse API operation for Amazon API Gateway.
- //
- // Represents a get integration response.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation GetIntegrationResponse for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See GetMethod for usage and error information.
- //
- // 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
- }
- // GetMethod API operation for Amazon API Gateway.
- //
- // Describe an existing Method resource.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation GetMethod for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See GetMethodResponse for usage and error information.
- //
- // 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
- }
- // GetMethodResponse API operation for Amazon API Gateway.
- //
- // Describes a MethodResponse resource.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation GetMethodResponse for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See GetModel for usage and error information.
- //
- // 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
- }
- // GetModel API operation for Amazon API Gateway.
- //
- // Describes an existing model defined for a RestApi resource.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation GetModel for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See GetModelTemplate for usage and error information.
- //
- // 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
- }
- // GetModelTemplate API operation for Amazon API Gateway.
- //
- // Generates a sample mapping template that can be used to transform a payload
- // into the structure of a model.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation GetModelTemplate for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * BadRequestException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See GetModels for usage and error information.
- //
- // 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
- }
- // GetModels API operation for Amazon API Gateway.
- //
- // Describes existing Models defined for a RestApi resource.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation GetModels for usage and error information.
- //
- // Returned Error Codes:
- // * BadRequestException
- //
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See GetResource for usage and error information.
- //
- // 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
- }
- // GetResource API operation for Amazon API Gateway.
- //
- // Lists information about a resource.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation GetResource for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See GetResources for usage and error information.
- //
- // 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
- }
- // GetResources API operation for Amazon API Gateway.
- //
- // Lists information about a collection of Resource resources.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation GetResources for usage and error information.
- //
- // Returned Error Codes:
- // * BadRequestException
- //
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See GetRestApi for usage and error information.
- //
- // 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
- }
- // GetRestApi API operation for Amazon API Gateway.
- //
- // Lists the RestApi resource in the collection.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation GetRestApi for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See GetRestApis for usage and error information.
- //
- // 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
- }
- // GetRestApis API operation for Amazon API Gateway.
- //
- // Lists the RestApis resources for your collection.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation GetRestApis for usage and error information.
- //
- // Returned Error Codes:
- // * BadRequestException
- //
- // * UnauthorizedException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See GetSdk for usage and error information.
- //
- // 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
- }
- // GetSdk API operation for Amazon API Gateway.
- //
- // Generates a client SDK for a RestApi and Stage.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation GetSdk for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * BadRequestException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See GetStage for usage and error information.
- //
- // 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
- }
- // GetStage API operation for Amazon API Gateway.
- //
- // Gets information about a Stage resource.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation GetStage for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See GetStages for usage and error information.
- //
- // 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
- }
- // GetStages API operation for Amazon API Gateway.
- //
- // Gets information about one or more Stage resources.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation GetStages for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * TooManyRequestsException
- //
- func (c *APIGateway) GetStages(input *GetStagesInput) (*GetStagesOutput, error) {
- req, out := c.GetStagesRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetUsage = "GetUsage"
- // GetUsageRequest generates a "aws/request.Request" representing the
- // client's request for the GetUsage operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See GetUsage for usage and error information.
- //
- // 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 GetUsage 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 GetUsageRequest method.
- // req, resp := client.GetUsageRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) GetUsageRequest(input *GetUsageInput) (req *request.Request, output *Usage) {
- op := &request.Operation{
- Name: opGetUsage,
- HTTPMethod: "GET",
- HTTPPath: "/usageplans/{usageplanId}/usage",
- Paginator: &request.Paginator{
- InputTokens: []string{"position"},
- OutputTokens: []string{"position"},
- LimitToken: "limit",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &GetUsageInput{}
- }
- req = c.newRequest(op, input, output)
- output = &Usage{}
- req.Data = output
- return
- }
- // GetUsage API operation for Amazon API Gateway.
- //
- // Gets the usage data of a usage plan in a specified time interval.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation GetUsage for usage and error information.
- //
- // Returned Error Codes:
- // * BadRequestException
- //
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * TooManyRequestsException
- //
- func (c *APIGateway) GetUsage(input *GetUsageInput) (*Usage, error) {
- req, out := c.GetUsageRequest(input)
- err := req.Send()
- return out, err
- }
- // GetUsagePages iterates over the pages of a GetUsage operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See GetUsage 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 GetUsage operation.
- // pageNum := 0
- // err := client.GetUsagePages(params,
- // func(page *Usage, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *APIGateway) GetUsagePages(input *GetUsageInput, fn func(p *Usage, lastPage bool) (shouldContinue bool)) error {
- page, _ := c.GetUsageRequest(input)
- page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
- return page.EachPage(func(p interface{}, lastPage bool) bool {
- return fn(p.(*Usage), lastPage)
- })
- }
- const opGetUsagePlan = "GetUsagePlan"
- // GetUsagePlanRequest generates a "aws/request.Request" representing the
- // client's request for the GetUsagePlan operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See GetUsagePlan for usage and error information.
- //
- // 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 GetUsagePlan 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 GetUsagePlanRequest method.
- // req, resp := client.GetUsagePlanRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) GetUsagePlanRequest(input *GetUsagePlanInput) (req *request.Request, output *UsagePlan) {
- op := &request.Operation{
- Name: opGetUsagePlan,
- HTTPMethod: "GET",
- HTTPPath: "/usageplans/{usageplanId}",
- }
- if input == nil {
- input = &GetUsagePlanInput{}
- }
- req = c.newRequest(op, input, output)
- output = &UsagePlan{}
- req.Data = output
- return
- }
- // GetUsagePlan API operation for Amazon API Gateway.
- //
- // Gets a usage plan of a given plan identifier.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation GetUsagePlan for usage and error information.
- //
- // Returned Error Codes:
- // * BadRequestException
- //
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * TooManyRequestsException
- //
- func (c *APIGateway) GetUsagePlan(input *GetUsagePlanInput) (*UsagePlan, error) {
- req, out := c.GetUsagePlanRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetUsagePlanKey = "GetUsagePlanKey"
- // GetUsagePlanKeyRequest generates a "aws/request.Request" representing the
- // client's request for the GetUsagePlanKey operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See GetUsagePlanKey for usage and error information.
- //
- // 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 GetUsagePlanKey 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 GetUsagePlanKeyRequest method.
- // req, resp := client.GetUsagePlanKeyRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) GetUsagePlanKeyRequest(input *GetUsagePlanKeyInput) (req *request.Request, output *UsagePlanKey) {
- op := &request.Operation{
- Name: opGetUsagePlanKey,
- HTTPMethod: "GET",
- HTTPPath: "/usageplans/{usageplanId}/keys/{keyId}",
- }
- if input == nil {
- input = &GetUsagePlanKeyInput{}
- }
- req = c.newRequest(op, input, output)
- output = &UsagePlanKey{}
- req.Data = output
- return
- }
- // GetUsagePlanKey API operation for Amazon API Gateway.
- //
- // Gets a usage plan key of a given key identifier.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation GetUsagePlanKey for usage and error information.
- //
- // Returned Error Codes:
- // * BadRequestException
- //
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * TooManyRequestsException
- //
- func (c *APIGateway) GetUsagePlanKey(input *GetUsagePlanKeyInput) (*UsagePlanKey, error) {
- req, out := c.GetUsagePlanKeyRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetUsagePlanKeys = "GetUsagePlanKeys"
- // GetUsagePlanKeysRequest generates a "aws/request.Request" representing the
- // client's request for the GetUsagePlanKeys operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See GetUsagePlanKeys for usage and error information.
- //
- // 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 GetUsagePlanKeys 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 GetUsagePlanKeysRequest method.
- // req, resp := client.GetUsagePlanKeysRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) GetUsagePlanKeysRequest(input *GetUsagePlanKeysInput) (req *request.Request, output *GetUsagePlanKeysOutput) {
- op := &request.Operation{
- Name: opGetUsagePlanKeys,
- HTTPMethod: "GET",
- HTTPPath: "/usageplans/{usageplanId}/keys",
- Paginator: &request.Paginator{
- InputTokens: []string{"position"},
- OutputTokens: []string{"position"},
- LimitToken: "limit",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &GetUsagePlanKeysInput{}
- }
- req = c.newRequest(op, input, output)
- output = &GetUsagePlanKeysOutput{}
- req.Data = output
- return
- }
- // GetUsagePlanKeys API operation for Amazon API Gateway.
- //
- // Gets all the usage plan keys representing the API keys added to a specified
- // usage plan.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation GetUsagePlanKeys for usage and error information.
- //
- // Returned Error Codes:
- // * BadRequestException
- //
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * TooManyRequestsException
- //
- func (c *APIGateway) GetUsagePlanKeys(input *GetUsagePlanKeysInput) (*GetUsagePlanKeysOutput, error) {
- req, out := c.GetUsagePlanKeysRequest(input)
- err := req.Send()
- return out, err
- }
- // GetUsagePlanKeysPages iterates over the pages of a GetUsagePlanKeys operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See GetUsagePlanKeys 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 GetUsagePlanKeys operation.
- // pageNum := 0
- // err := client.GetUsagePlanKeysPages(params,
- // func(page *GetUsagePlanKeysOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *APIGateway) GetUsagePlanKeysPages(input *GetUsagePlanKeysInput, fn func(p *GetUsagePlanKeysOutput, lastPage bool) (shouldContinue bool)) error {
- page, _ := c.GetUsagePlanKeysRequest(input)
- page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
- return page.EachPage(func(p interface{}, lastPage bool) bool {
- return fn(p.(*GetUsagePlanKeysOutput), lastPage)
- })
- }
- const opGetUsagePlans = "GetUsagePlans"
- // GetUsagePlansRequest generates a "aws/request.Request" representing the
- // client's request for the GetUsagePlans operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See GetUsagePlans for usage and error information.
- //
- // 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 GetUsagePlans 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 GetUsagePlansRequest method.
- // req, resp := client.GetUsagePlansRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) GetUsagePlansRequest(input *GetUsagePlansInput) (req *request.Request, output *GetUsagePlansOutput) {
- op := &request.Operation{
- Name: opGetUsagePlans,
- HTTPMethod: "GET",
- HTTPPath: "/usageplans",
- Paginator: &request.Paginator{
- InputTokens: []string{"position"},
- OutputTokens: []string{"position"},
- LimitToken: "limit",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &GetUsagePlansInput{}
- }
- req = c.newRequest(op, input, output)
- output = &GetUsagePlansOutput{}
- req.Data = output
- return
- }
- // GetUsagePlans API operation for Amazon API Gateway.
- //
- // Gets all the usage plans of the caller's account.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation GetUsagePlans for usage and error information.
- //
- // Returned Error Codes:
- // * BadRequestException
- //
- // * UnauthorizedException
- //
- // * TooManyRequestsException
- //
- // * ConflictException
- //
- func (c *APIGateway) GetUsagePlans(input *GetUsagePlansInput) (*GetUsagePlansOutput, error) {
- req, out := c.GetUsagePlansRequest(input)
- err := req.Send()
- return out, err
- }
- // GetUsagePlansPages iterates over the pages of a GetUsagePlans operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See GetUsagePlans 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 GetUsagePlans operation.
- // pageNum := 0
- // err := client.GetUsagePlansPages(params,
- // func(page *GetUsagePlansOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *APIGateway) GetUsagePlansPages(input *GetUsagePlansInput, fn func(p *GetUsagePlansOutput, lastPage bool) (shouldContinue bool)) error {
- page, _ := c.GetUsagePlansRequest(input)
- page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
- return page.EachPage(func(p interface{}, lastPage bool) bool {
- return fn(p.(*GetUsagePlansOutput), lastPage)
- })
- }
- const opImportApiKeys = "ImportApiKeys"
- // ImportApiKeysRequest generates a "aws/request.Request" representing the
- // client's request for the ImportApiKeys operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See ImportApiKeys for usage and error information.
- //
- // 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 ImportApiKeys 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 ImportApiKeysRequest method.
- // req, resp := client.ImportApiKeysRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) ImportApiKeysRequest(input *ImportApiKeysInput) (req *request.Request, output *ImportApiKeysOutput) {
- op := &request.Operation{
- Name: opImportApiKeys,
- HTTPMethod: "POST",
- HTTPPath: "/apikeys?mode=import",
- }
- if input == nil {
- input = &ImportApiKeysInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ImportApiKeysOutput{}
- req.Data = output
- return
- }
- // ImportApiKeys API operation for Amazon API Gateway.
- //
- // Import API keys from an external source, such as a CSV-formatted file.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation ImportApiKeys for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * TooManyRequestsException
- //
- // * LimitExceededException
- //
- // * BadRequestException
- //
- // * ConflictException
- //
- func (c *APIGateway) ImportApiKeys(input *ImportApiKeysInput) (*ImportApiKeysOutput, error) {
- req, out := c.ImportApiKeysRequest(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.
- //
- // See ImportRestApi for usage and error information.
- //
- // 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
- }
- // ImportRestApi API operation for Amazon API Gateway.
- //
- // A feature of the Amazon API Gateway control service for creating a new API
- // from an external API definition file.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation ImportRestApi for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * LimitExceededException
- //
- // * BadRequestException
- //
- // * TooManyRequestsException
- //
- // * ConflictException
- //
- 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.
- //
- // See PutIntegration for usage and error information.
- //
- // 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
- }
- // PutIntegration API operation for Amazon API Gateway.
- //
- // Represents a put integration.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation PutIntegration for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * BadRequestException
- //
- // * ConflictException
- //
- // * NotFoundException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See PutIntegrationResponse for usage and error information.
- //
- // 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
- }
- // PutIntegrationResponse API operation for Amazon API Gateway.
- //
- // Represents a put integration.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation PutIntegrationResponse for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * LimitExceededException
- //
- // * BadRequestException
- //
- // * TooManyRequestsException
- //
- // * ConflictException
- //
- 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.
- //
- // See PutMethod for usage and error information.
- //
- // 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
- }
- // PutMethod API operation for Amazon API Gateway.
- //
- // Add a method to an existing Resource resource.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation PutMethod for usage and error information.
- //
- // Returned Error Codes:
- // * BadRequestException
- //
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * ConflictException
- //
- // * LimitExceededException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See PutMethodResponse for usage and error information.
- //
- // 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
- }
- // PutMethodResponse API operation for Amazon API Gateway.
- //
- // Adds a MethodResponse to an existing Method resource.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation PutMethodResponse for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * ConflictException
- //
- // * LimitExceededException
- //
- // * BadRequestException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See PutRestApi for usage and error information.
- //
- // 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
- }
- // PutRestApi API operation for Amazon API Gateway.
- //
- // 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.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation PutRestApi for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * LimitExceededException
- //
- // * NotFoundException
- //
- // * BadRequestException
- //
- // * TooManyRequestsException
- //
- // * ConflictException
- //
- 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.
- //
- // See TestInvokeAuthorizer for usage and error information.
- //
- // 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
- }
- // TestInvokeAuthorizer API operation for Amazon API Gateway.
- //
- // Simulate the execution of an Authorizer in your RestApi with headers, parameters,
- // and an incoming request body.
- //
- // Enable custom authorizers (http://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html)
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation TestInvokeAuthorizer for usage and error information.
- //
- // Returned Error Codes:
- // * BadRequestException
- //
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See TestInvokeMethod for usage and error information.
- //
- // 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
- }
- // TestInvokeMethod API operation for Amazon API Gateway.
- //
- // Simulate the execution of a Method in your RestApi with headers, parameters,
- // and an incoming request body.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation TestInvokeMethod for usage and error information.
- //
- // Returned Error Codes:
- // * BadRequestException
- //
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See UpdateAccount for usage and error information.
- //
- // 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
- }
- // UpdateAccount API operation for Amazon API Gateway.
- //
- // Changes information about the current Account resource.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation UpdateAccount for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * BadRequestException
- //
- // * NotFoundException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See UpdateApiKey for usage and error information.
- //
- // 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
- }
- // UpdateApiKey API operation for Amazon API Gateway.
- //
- // Changes information about an ApiKey resource.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation UpdateApiKey for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * BadRequestException
- //
- // * TooManyRequestsException
- //
- // * ConflictException
- //
- 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.
- //
- // See UpdateAuthorizer for usage and error information.
- //
- // 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
- }
- // UpdateAuthorizer API operation for Amazon API Gateway.
- //
- // Updates an existing Authorizer resource.
- //
- // AWS CLI (http://docs.aws.amazon.com/cli/latest/reference/apigateway/update-authorizer.html)
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation UpdateAuthorizer for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * BadRequestException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See UpdateBasePathMapping for usage and error information.
- //
- // 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
- }
- // UpdateBasePathMapping API operation for Amazon API Gateway.
- //
- // Changes information about the BasePathMapping resource.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation UpdateBasePathMapping for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * ConflictException
- //
- // * BadRequestException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See UpdateClientCertificate for usage and error information.
- //
- // 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
- }
- // UpdateClientCertificate API operation for Amazon API Gateway.
- //
- // Changes information about an ClientCertificate resource.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation UpdateClientCertificate for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * TooManyRequestsException
- //
- // * BadRequestException
- //
- // * NotFoundException
- //
- 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.
- //
- // See UpdateDeployment for usage and error information.
- //
- // 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
- }
- // UpdateDeployment API operation for Amazon API Gateway.
- //
- // Changes information about a Deployment resource.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation UpdateDeployment for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * BadRequestException
- //
- // * TooManyRequestsException
- //
- // * ServiceUnavailableException
- //
- 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.
- //
- // See UpdateDomainName for usage and error information.
- //
- // 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
- }
- // UpdateDomainName API operation for Amazon API Gateway.
- //
- // Changes information about the DomainName resource.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation UpdateDomainName for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * BadRequestException
- //
- // * ConflictException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See UpdateIntegration for usage and error information.
- //
- // 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
- }
- // UpdateIntegration API operation for Amazon API Gateway.
- //
- // Represents an update integration.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation UpdateIntegration for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * BadRequestException
- //
- // * TooManyRequestsException
- //
- // * ConflictException
- //
- 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.
- //
- // See UpdateIntegrationResponse for usage and error information.
- //
- // 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
- }
- // UpdateIntegrationResponse API operation for Amazon API Gateway.
- //
- // Represents an update integration response.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation UpdateIntegrationResponse for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * ConflictException
- //
- // * BadRequestException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See UpdateMethod for usage and error information.
- //
- // 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
- }
- // UpdateMethod API operation for Amazon API Gateway.
- //
- // Updates an existing Method resource.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation UpdateMethod for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * BadRequestException
- //
- // * ConflictException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See UpdateMethodResponse for usage and error information.
- //
- // 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
- }
- // UpdateMethodResponse API operation for Amazon API Gateway.
- //
- // Updates an existing MethodResponse resource.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation UpdateMethodResponse for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * ConflictException
- //
- // * LimitExceededException
- //
- // * BadRequestException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See UpdateModel for usage and error information.
- //
- // 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
- }
- // UpdateModel API operation for Amazon API Gateway.
- //
- // Changes information about a model.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation UpdateModel for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * BadRequestException
- //
- // * ConflictException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See UpdateResource for usage and error information.
- //
- // 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
- }
- // UpdateResource API operation for Amazon API Gateway.
- //
- // Changes information about a Resource resource.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation UpdateResource for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * ConflictException
- //
- // * BadRequestException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See UpdateRestApi for usage and error information.
- //
- // 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
- }
- // UpdateRestApi API operation for Amazon API Gateway.
- //
- // Changes information about the specified API.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation UpdateRestApi for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * ConflictException
- //
- // * BadRequestException
- //
- // * TooManyRequestsException
- //
- 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.
- //
- // See UpdateStage for usage and error information.
- //
- // 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
- }
- // UpdateStage API operation for Amazon API Gateway.
- //
- // Changes information about a Stage resource.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation UpdateStage for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * NotFoundException
- //
- // * ConflictException
- //
- // * BadRequestException
- //
- // * TooManyRequestsException
- //
- func (c *APIGateway) UpdateStage(input *UpdateStageInput) (*Stage, error) {
- req, out := c.UpdateStageRequest(input)
- err := req.Send()
- return out, err
- }
- const opUpdateUsage = "UpdateUsage"
- // UpdateUsageRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateUsage operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See UpdateUsage for usage and error information.
- //
- // 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 UpdateUsage 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 UpdateUsageRequest method.
- // req, resp := client.UpdateUsageRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) UpdateUsageRequest(input *UpdateUsageInput) (req *request.Request, output *Usage) {
- op := &request.Operation{
- Name: opUpdateUsage,
- HTTPMethod: "PATCH",
- HTTPPath: "/usageplans/{usageplanId}/keys/{keyId}/usage",
- }
- if input == nil {
- input = &UpdateUsageInput{}
- }
- req = c.newRequest(op, input, output)
- output = &Usage{}
- req.Data = output
- return
- }
- // UpdateUsage API operation for Amazon API Gateway.
- //
- // Grants a temporary extension to the reamining quota of a usage plan associated
- // with a specified API key.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation UpdateUsage for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * TooManyRequestsException
- //
- // * BadRequestException
- //
- // * NotFoundException
- //
- func (c *APIGateway) UpdateUsage(input *UpdateUsageInput) (*Usage, error) {
- req, out := c.UpdateUsageRequest(input)
- err := req.Send()
- return out, err
- }
- const opUpdateUsagePlan = "UpdateUsagePlan"
- // UpdateUsagePlanRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateUsagePlan operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See UpdateUsagePlan for usage and error information.
- //
- // 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 UpdateUsagePlan 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 UpdateUsagePlanRequest method.
- // req, resp := client.UpdateUsagePlanRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *APIGateway) UpdateUsagePlanRequest(input *UpdateUsagePlanInput) (req *request.Request, output *UsagePlan) {
- op := &request.Operation{
- Name: opUpdateUsagePlan,
- HTTPMethod: "PATCH",
- HTTPPath: "/usageplans/{usageplanId}",
- }
- if input == nil {
- input = &UpdateUsagePlanInput{}
- }
- req = c.newRequest(op, input, output)
- output = &UsagePlan{}
- req.Data = output
- return
- }
- // UpdateUsagePlan API operation for Amazon API Gateway.
- //
- // Updates a usage plan of a given plan Id.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon API Gateway's
- // API operation UpdateUsagePlan for usage and error information.
- //
- // Returned Error Codes:
- // * UnauthorizedException
- //
- // * TooManyRequestsException
- //
- // * BadRequestException
- //
- // * NotFoundException
- //
- // * ConflictException
- //
- func (c *APIGateway) UpdateUsagePlan(input *UpdateUsagePlanInput) (*UsagePlan, error) {
- req, out := c.UpdateUsagePlanRequest(input)
- err := req.Send()
- return out, err
- }
- // Represents an AWS account that is associated with Amazon API Gateway.
- //
- // To view the account info, call GET on this resource.
- //
- // Error Codes
- //
- // The following exception may be thrown when the request fails.
- //
- // UnauthorizedException
- // NotFoundException
- // TooManyRequestsException
- // For detailed error code information, including the corresponding HTTP Status
- // Codes, see API Gateway Error Codes (http://docs.aws.amazon.com/apigateway/api-reference/handling-errors/#api-error-codes)
- //
- // Example: Get the information about an account.
- //
- // Request
- //
- // GET /account HTTP/1.1 Content-Type: application/json Host: apigateway.us-east-1.amazonaws.com
- // X-Amz-Date: 20160531T184618Z Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/us-east-1/apigateway/aws4_request,
- // SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
- // Response
- //
- // The successful response returns a 200 OK status code and a payload similar
- // to the following:
- //
- // { "_links": { "curies": { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/account-apigateway-{rel}.html",
- // "name": "account", "templated": true }, "self": { "href": "/account" }, "account:update":
- // { "href": "/account" } }, "cloudwatchRoleArn": "arn:aws:iam::123456789012:role/apigAwsProxyRole",
- // "throttleSettings": { "rateLimit": 500, "burstLimit": 1000 } }
- // In addition to making the REST API call directly, you can use the AWS CLI
- // and an AWS SDK to access this resource.
- //
- // API Gateway Limits (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-limits.html)Developer
- // Guide (http://docs.aws.amazon.com/apigateway/latest/developerguide/welcome.html),
- // AWS CLI (http://docs.aws.amazon.com/cli/latest/reference/apigateway/get-account.html)
- type Account struct {
- _ struct{} `type:"structure"`
- // The version of the API keys used for the account.
- ApiKeyVersion *string `locationName:"apiKeyVersion" type:"string"`
- // The ARN of an Amazon CloudWatch role for the current Account.
- CloudwatchRoleArn *string `locationName:"cloudwatchRoleArn" type:"string"`
- // A list of features supported for the account. When usage plans are enabled,
- // the features list will include an entry of "UsagePlans".
- Features []*string `locationName:"features" type:"list"`
- // Specifies the API request limits configured for the current Account.
- 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.
- //
- // Use API Keys (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-api-keys.html)
- 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).
- 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"`
- // The value of the API Key.
- Value *string `locationName:"value" type:"string"`
- }
- // 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()
- }
- // API stage name of the associated API stage in a usage plan.
- type ApiStage struct {
- _ struct{} `type:"structure"`
- // API Id of the associated API stage in a usage plan.
- ApiId *string `locationName:"apiId" type:"string"`
- // API stage name of the associated API stage in a usage plan.
- Stage *string `locationName:"stage" type:"string"`
- }
- // String returns the string representation
- func (s ApiStage) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ApiStage) 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.
- //
- // Enable custom authorization (http://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html)
- 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"`
- // A list of the provider ARNs of the authorizer.
- 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 must provide as part of
- // the URL after the domain name.
- //
- // A custom domain name plus a BasePathMapping specification identifies a deployed
- // RestApi in a given stage of the owner Account.
- // Use Custom Domain Names (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains.html)
- 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.
- //
- // Client certificates are used authenticate an API by the back-end server.
- // To authenticate an API client (or user), use a custom Authorizer.
- // Use Client-Side Certificate (http://docs.aws.amazon.com/apigateway/latest/developerguide/getting-started-client-side-ssl-authentication.html)
- 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).
- 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).
- ExpirationDate *time.Time `locationName:"expirationDate" type:"timestamp" timestampFormat:"unix"`
- // The PEM-encoded public key of the client certificate, which 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"`
- // Specifies whether (true) or not (false) the key identifier is distinct from
- // the created API key value.
- GenerateDistinctId *bool `locationName:"generateDistinctId" type:"boolean"`
- // The name of the ApiKey.
- Name *string `locationName:"name" type:"string"`
- // DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.
- StageKeys []*StageKey `locationName:"stageKeys" type:"list"`
- // Specifies a value of the API key.
- Value *string `locationName:"value" type:"string"`
- }
- // 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 is a required field
- 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 is a required field
- Name *string `locationName:"name" type:"string" required:"true"`
- // A list of the Cognito Your User Pool authorizer's provider ARNs.
- ProviderARNs []*string `locationName:"providerARNs" type:"list"`
- // The RestApi identifier under which the Authorizer will be created.
- //
- // RestApiId is a required field
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- // [Required] The type of the authorizer.
- //
- // Type is a required field
- 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 is a required field
- 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 is a required field
- 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 is a required field
- 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 is a required field
- 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 and underscore
- // 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 is a required field
- 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 is a required field
- CertificateChain *string `locationName:"certificateChain" type:"string" required:"true"`
- // The name of the certificate.
- //
- // CertificateName is a required field
- CertificateName *string `locationName:"certificateName" type:"string" required:"true"`
- // Your certificate's private key.
- //
- // CertificatePrivateKey is a required field
- CertificatePrivateKey *string `locationName:"certificatePrivateKey" type:"string" required:"true"`
- // The name of the DomainName resource.
- //
- // DomainName is a required field
- 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 is a required field
- 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 is a required field
- Name *string `locationName:"name" type:"string" required:"true"`
- // The RestApi identifier under which the Model will be created.
- //
- // RestApiId is a required field
- 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) 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 is a required field
- ParentId *string `location:"uri" locationName:"parent_id" type:"string" required:"true"`
- // The last path segment for this resource.
- //
- // PathPart is a required field
- PathPart *string `locationName:"pathPart" type:"string" required:"true"`
- // The identifier of the RestApi for the resource.
- //
- // RestApiId is a required field
- 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 is a required field
- 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 is a required field
- 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 is a required field
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- // The name for the Stage resource.
- //
- // StageName is a required field
- 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 and underscore 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
- }
- // The POST request to create a usage plan with the name, description, throttle
- // limits and quota limits, as well as the associated API stages, specified
- // in the payload.
- type CreateUsagePlanInput struct {
- _ struct{} `type:"structure"`
- // The associated API stages of the usage plan.
- ApiStages []*ApiStage `locationName:"apiStages" type:"list"`
- // The description of the usage plan.
- Description *string `locationName:"description" type:"string"`
- // The name of the usage plan.
- //
- // Name is a required field
- Name *string `locationName:"name" type:"string" required:"true"`
- // The quota of the usage plan.
- Quota *QuotaSettings `locationName:"quota" type:"structure"`
- // The throttling limits of the usage plan.
- Throttle *ThrottleSettings `locationName:"throttle" type:"structure"`
- }
- // String returns the string representation
- func (s CreateUsagePlanInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateUsagePlanInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateUsagePlanInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateUsagePlanInput"}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The POST request to create a usage plan key for adding an existing API key
- // to a usage plan.
- type CreateUsagePlanKeyInput struct {
- _ struct{} `type:"structure"`
- // The identifier of a UsagePlanKey resource for a plan customer.
- //
- // KeyId is a required field
- KeyId *string `locationName:"keyId" type:"string" required:"true"`
- // The type of a UsagePlanKey resource for a plan customer.
- //
- // KeyType is a required field
- KeyType *string `locationName:"keyType" type:"string" required:"true"`
- // The Id of the UsagePlan resource representing the usage plan containing the
- // to-be-created UsagePlanKey resource representing a plan customer.
- //
- // UsagePlanId is a required field
- UsagePlanId *string `location:"uri" locationName:"usageplanId" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CreateUsagePlanKeyInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateUsagePlanKeyInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateUsagePlanKeyInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateUsagePlanKeyInput"}
- if s.KeyId == nil {
- invalidParams.Add(request.NewErrParamRequired("KeyId"))
- }
- if s.KeyType == nil {
- invalidParams.Add(request.NewErrParamRequired("KeyType"))
- }
- if s.UsagePlanId == nil {
- invalidParams.Add(request.NewErrParamRequired("UsagePlanId"))
- }
- 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 is a required field
- 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 is a required field
- AuthorizerId *string `location:"uri" locationName:"authorizer_id" type:"string" required:"true"`
- // The RestApi identifier for the Authorizer resource.
- //
- // RestApiId is a required field
- 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 is a required field
- BasePath *string `location:"uri" locationName:"base_path" type:"string" required:"true"`
- // The domain name of the BasePathMapping resource to delete.
- //
- // DomainName is a required field
- 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 is a required field
- 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 is a required field
- DeploymentId *string `location:"uri" locationName:"deployment_id" type:"string" required:"true"`
- // The identifier of the RestApi resource for the Deployment resource to delete.
- //
- // RestApiId is a required field
- 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 is a required field
- 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 is a required field
- HttpMethod *string `location:"uri" locationName:"http_method" type:"string" required:"true"`
- // Specifies a delete integration request's resource identifier.
- //
- // ResourceId is a required field
- ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"`
- // Specifies a delete integration request's API identifier.
- //
- // RestApiId is a required field
- 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 is a required field
- HttpMethod *string `location:"uri" locationName:"http_method" type:"string" required:"true"`
- // Specifies a delete integration response request's resource identifier.
- //
- // ResourceId is a required field
- ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"`
- // Specifies a delete integration response request's API identifier.
- //
- // RestApiId is a required field
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- // Specifies a delete integration response request's status code.
- //
- // StatusCode is a required field
- 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 of the Method resource.
- //
- // HttpMethod is a required field
- HttpMethod *string `location:"uri" locationName:"http_method" type:"string" required:"true"`
- // The Resource identifier for the Method resource.
- //
- // ResourceId is a required field
- ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"`
- // The RestApi identifier for the Method resource.
- //
- // RestApiId is a required field
- 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 of the Method resource.
- //
- // HttpMethod is a required field
- HttpMethod *string `location:"uri" locationName:"http_method" type:"string" required:"true"`
- // The Resource identifier for the MethodResponse resource.
- //
- // ResourceId is a required field
- ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"`
- // The RestApi identifier for the MethodResponse resource.
- //
- // RestApiId is a required field
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- // The status code identifier for the MethodResponse resource.
- //
- // StatusCode is a required field
- 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 is a required field
- ModelName *string `location:"uri" locationName:"model_name" type:"string" required:"true"`
- // The RestApi under which the model will be deleted.
- //
- // RestApiId is a required field
- 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 is a required field
- ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"`
- // The RestApi identifier for the Resource resource.
- //
- // RestApiId is a required field
- 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 is a required field
- 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 is a required field
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- // The name of the Stage resource to delete.
- //
- // StageName is a required field
- 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()
- }
- // The DELETE request to delete a uasge plan of a given plan Id.
- type DeleteUsagePlanInput struct {
- _ struct{} `type:"structure"`
- // The Id of the to-be-deleted usage plan.
- //
- // UsagePlanId is a required field
- UsagePlanId *string `location:"uri" locationName:"usageplanId" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteUsagePlanInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteUsagePlanInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteUsagePlanInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteUsagePlanInput"}
- if s.UsagePlanId == nil {
- invalidParams.Add(request.NewErrParamRequired("UsagePlanId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The DELETE request to delete a usage plan key and remove the underlying API
- // key from the associated usage plan.
- type DeleteUsagePlanKeyInput struct {
- _ struct{} `type:"structure"`
- // The Id of the UsagePlanKey resource to be deleted.
- //
- // KeyId is a required field
- KeyId *string `location:"uri" locationName:"keyId" type:"string" required:"true"`
- // The Id of the UsagePlan resource representing the usage plan containing the
- // to-be-deleted UsagePlanKey resource representing a plan customer.
- //
- // UsagePlanId is a required field
- UsagePlanId *string `location:"uri" locationName:"usageplanId" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteUsagePlanKeyInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteUsagePlanKeyInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteUsagePlanKeyInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteUsagePlanKeyInput"}
- if s.KeyId == nil {
- invalidParams.Add(request.NewErrParamRequired("KeyId"))
- }
- if s.UsagePlanId == nil {
- invalidParams.Add(request.NewErrParamRequired("UsagePlanId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type DeleteUsagePlanKeyOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteUsagePlanKeyOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteUsagePlanKeyOutput) GoString() string {
- return s.String()
- }
- type DeleteUsagePlanOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteUsagePlanOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteUsagePlanOutput) 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.
- //
- // To create a deployment, call POST on the Deployments resource of a RestApi.
- // To view, update, or delete a deployment, call GET, PATCH, or DELETE on the
- // specified deployment resource (/restapis/{restapi_id}/deployments/{deployment_id}).
- //
- // RestApi, Deployments, Stage, AWS CLI (http://docs.aws.amazon.com/cli/latest/reference/apigateway/get-deployment.html),
- // AWS SDKs (https://aws.amazon.com/tools/)
- type Deployment struct {
- _ struct{} `type:"structure"`
- // 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.
- //
- // Use Client-Side Certificate (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains.html)
- 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).
- 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/).
- 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 is a required field
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- // The name of the stage to flush.
- //
- // StageName is a required field
- 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 is a required field
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- // The name of the stage to flush its cache.
- //
- // StageName is a required field
- 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 is a required field
- ApiKey *string `location:"uri" locationName:"api_Key" type:"string" required:"true"`
- // A boolean flag to specify whether (true) or not (false) the result contains
- // the key value.
- IncludeValue *bool `location:"querystring" locationName:"includeValue" type:"boolean"`
- }
- // 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"`
- // A boolean flag to specify whether (true) or not (false) the result contains
- // key values.
- IncludeValues *bool `location:"querystring" locationName:"includeValues" type:"boolean"`
- // The maximum number of ApiKeys to get information about.
- Limit *int64 `location:"querystring" locationName:"limit" type:"integer"`
- // The name of queried API keys.
- NameQuery *string `location:"querystring" locationName:"name" type:"string"`
- // 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 API keys as represented by an ApiKeys resource.
- //
- // Use API Keys (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-api-keys.html)
- 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"`
- // A list of warning messages logged during the import of API keys when the
- // failOnWarnings option is set to true.
- Warnings []*string `locationName:"warnings" type:"list"`
- }
- // 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 is a required field
- AuthorizerId *string `location:"uri" locationName:"authorizer_id" type:"string" required:"true"`
- // The RestApi identifier for the Authorizer resource.
- //
- // RestApiId is a required field
- 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 specify where to start the next page of results.
- Position *string `location:"querystring" locationName:"position" type:"string"`
- // The RestApi identifier for the Authorizers resource.
- //
- // RestApiId is a required field
- 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.
- //
- // Enable custom authorization (http://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html)
- 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 is a required field
- BasePath *string `location:"uri" locationName:"base_path" type:"string" required:"true"`
- // The domain name of the BasePathMapping resource to be described.
- //
- // DomainName is a required field
- 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 is a required field
- 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.
- //
- // Use Custom Domain Names (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains.html)
- 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 is a required field
- 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.
- //
- // Use Client-Side Certificate (http://docs.aws.amazon.com/apigateway/latest/developerguide/getting-started-client-side-ssl-authentication.html)
- 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 is a required field
- 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 is a required field
- 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 is a required field
- 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 how to interact with
- // your collection. The collection offers a paginated view of the contained
- // deployments.
- //
- // To create a new deployment of a RestApi, make a POST request against this
- // resource. To view, update, or delete an existing deployment, make a GET,
- // PATCH, or DELETE request, respectively, on a specified Deployment resource.
- //
- // Deploying an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-deploy-api.html),
- // AWS CLI (http://docs.aws.amazon.com/cli/latest/reference/apigateway/get-deployment.html),
- // AWS SDKs (https://aws.amazon.com/tools/)
- 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 is a required field
- 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.
- //
- // Use Client-Side Certificate (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains.html)
- 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 of swagger. This should
- // be specified 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 is a required field
- 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 exportTypeswagger, any
- // combination of the following parameters are supported: integrations will
- // export the API with x-amazon-apigateway-integration extensions. authorizers
- // will export the API with x-amazon-apigateway-authorizer extensions. postman
- // will export the API 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 is a required field
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- // The name of the Stage that will be exported.
- //
- // StageName is a required field
- 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 response.
- 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 is a required field
- HttpMethod *string `location:"uri" locationName:"http_method" type:"string" required:"true"`
- // Specifies a get integration request's resource identifier
- //
- // ResourceId is a required field
- ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"`
- // Specifies a get integration request's API identifier.
- //
- // RestApiId is a required field
- 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 is a required field
- HttpMethod *string `location:"uri" locationName:"http_method" type:"string" required:"true"`
- // Specifies a get integration response request's resource identifier.
- //
- // ResourceId is a required field
- ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"`
- // Specifies a get integration response request's API identifier.
- //
- // RestApiId is a required field
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- // Specifies a get integration response request's status code.
- //
- // StatusCode is a required field
- 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 method request's HTTP method type.
- //
- // HttpMethod is a required field
- HttpMethod *string `location:"uri" locationName:"http_method" type:"string" required:"true"`
- // The Resource identifier for the Method resource.
- //
- // ResourceId is a required field
- ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"`
- // The RestApi identifier for the Method resource.
- //
- // RestApiId is a required field
- 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 of the Method resource.
- //
- // HttpMethod is a required field
- HttpMethod *string `location:"uri" locationName:"http_method" type:"string" required:"true"`
- // The Resource identifier for the MethodResponse resource.
- //
- // ResourceId is a required field
- ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"`
- // The RestApi identifier for the MethodResponse resource.
- //
- // RestApiId is a required field
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- // The status code for the MethodResponse resource.
- //
- // StatusCode is a required field
- 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"`
- // A query parameter of a Boolean value to resolve (true) all external model
- // references and returns a flattened model schema or not (false) The default
- // is false.
- Flatten *bool `location:"querystring" locationName:"flatten" type:"boolean"`
- // The name of the model as an identifier.
- //
- // ModelName is a required field
- ModelName *string `location:"uri" locationName:"model_name" type:"string" required:"true"`
- // The RestApi identifier under which the Model exists.
- //
- // RestApiId is a required field
- 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 is a required field
- ModelName *string `location:"uri" locationName:"model_name" type:"string" required:"true"`
- // The ID of the RestApi under which the model exists.
- //
- // RestApiId is a required field
- 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.
- //
- // Mapping Templates (http://docs.aws.amazon.com/apigateway/latest/developerguide/models-mappings.html#models-mappings-mappings)
- type GetModelTemplateOutput struct {
- _ struct{} `type:"structure"`
- // The Apache Velocity Template Language (VTL) (http://velocity.apache.org/engine/devel/vtl-reference-guide.html)
- // 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 is a required field
- 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.
- //
- // Method, MethodResponse, Models and Mappings (http://docs.aws.amazon.com/apigateway/latest/developerguide/models-mappings.html)
- 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 is a required field
- ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"`
- // The RestApi identifier for the resource.
- //
- // RestApiId is a required field
- 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 is a required field
- 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.
- //
- // Create an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html)
- 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 is a required field
- 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 how to interact
- // with your collection. A collection offers a paginated view of your APIs.
- //
- // Create an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html)
- 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 of objectivec, a parameter
- // named classPrefix is required. For sdkType of 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 is a required field
- 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 is a required field
- SdkType *string `location:"uri" locationName:"sdk_type" type:"string" required:"true"`
- // The name of the Stage that the SDK will use.
- //
- // StageName is a required field
- 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 response.
- 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 is a required field
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- // The name of the Stage resource to get information about.
- //
- // StageName is a required field
- 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 is a required field
- 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 resources that are associated with the ApiKey resource.
- //
- // Deploying API in Stages (http://docs.aws.amazon.com/apigateway/latest/developerguide/stages.html)
- 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()
- }
- // The GET request to get the usage data of a usage plan in a specified time
- // interval.
- type GetUsageInput struct {
- _ struct{} `type:"structure"`
- // The ending date (e.g., 2016-12-31) of the usage data.
- //
- // EndDate is a required field
- EndDate *string `location:"querystring" locationName:"endDate" type:"string" required:"true"`
- // The Id of the API key associated with the resultant usage data.
- KeyId *string `location:"querystring" locationName:"keyId" type:"string"`
- // The maximum number of results to be returned.
- Limit *int64 `location:"querystring" locationName:"limit" type:"integer"`
- // Position
- Position *string `location:"querystring" locationName:"position" type:"string"`
- // The starting date (e.g., 2016-01-01) of the usage data.
- //
- // StartDate is a required field
- StartDate *string `location:"querystring" locationName:"startDate" type:"string" required:"true"`
- // The Id of the usage plan associated with the usage data.
- //
- // UsagePlanId is a required field
- UsagePlanId *string `location:"uri" locationName:"usageplanId" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetUsageInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetUsageInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetUsageInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetUsageInput"}
- if s.EndDate == nil {
- invalidParams.Add(request.NewErrParamRequired("EndDate"))
- }
- if s.StartDate == nil {
- invalidParams.Add(request.NewErrParamRequired("StartDate"))
- }
- if s.UsagePlanId == nil {
- invalidParams.Add(request.NewErrParamRequired("UsagePlanId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The GET request to get a usage plan of a given plan identifier.
- type GetUsagePlanInput struct {
- _ struct{} `type:"structure"`
- // The identifier of the UsagePlan resource to be retrieved.
- //
- // UsagePlanId is a required field
- UsagePlanId *string `location:"uri" locationName:"usageplanId" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetUsagePlanInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetUsagePlanInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetUsagePlanInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetUsagePlanInput"}
- if s.UsagePlanId == nil {
- invalidParams.Add(request.NewErrParamRequired("UsagePlanId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The GET request to get a usage plan key of a given key identifier.
- type GetUsagePlanKeyInput struct {
- _ struct{} `type:"structure"`
- // The key Id of the to-be-retrieved UsagePlanKey resource representing a plan
- // customer.
- //
- // KeyId is a required field
- KeyId *string `location:"uri" locationName:"keyId" type:"string" required:"true"`
- // The Id of the UsagePlan resource representing the usage plan containing the
- // to-be-retrieved UsagePlanKey resource representing a plan customer.
- //
- // UsagePlanId is a required field
- UsagePlanId *string `location:"uri" locationName:"usageplanId" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetUsagePlanKeyInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetUsagePlanKeyInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetUsagePlanKeyInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetUsagePlanKeyInput"}
- if s.KeyId == nil {
- invalidParams.Add(request.NewErrParamRequired("KeyId"))
- }
- if s.UsagePlanId == nil {
- invalidParams.Add(request.NewErrParamRequired("UsagePlanId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The GET request to get all the usage plan keys representing the API keys
- // added to a specified usage plan.
- type GetUsagePlanKeysInput struct {
- _ struct{} `type:"structure"`
- // A query parameter specifying the maximum number usage plan keys returned
- // by the GET request.
- Limit *int64 `location:"querystring" locationName:"limit" type:"integer"`
- // A query parameter specifying the name of the to-be-returned usage plan keys.
- NameQuery *string `location:"querystring" locationName:"name" type:"string"`
- // A query parameter specifying the zero-based index specifying the position
- // of a usage plan key.
- Position *string `location:"querystring" locationName:"position" type:"string"`
- // The Id of the UsagePlan resource representing the usage plan containing the
- // to-be-retrieved UsagePlanKey resource representing a plan customer.
- //
- // UsagePlanId is a required field
- UsagePlanId *string `location:"uri" locationName:"usageplanId" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetUsagePlanKeysInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetUsagePlanKeysInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetUsagePlanKeysInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetUsagePlanKeysInput"}
- if s.UsagePlanId == nil {
- invalidParams.Add(request.NewErrParamRequired("UsagePlanId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the collection of usage plan keys added to usage plans for the
- // associated API keys and, possibly, other types of keys.
- //
- // Create and Use Usage Plans (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html)
- type GetUsagePlanKeysOutput struct {
- _ struct{} `type:"structure"`
- // Gets the current item of the usage plan keys collection.
- Items []*UsagePlanKey `locationName:"item" type:"list"`
- Position *string `locationName:"position" type:"string"`
- }
- // String returns the string representation
- func (s GetUsagePlanKeysOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetUsagePlanKeysOutput) GoString() string {
- return s.String()
- }
- // The GET request to get all the usage plans of the caller's account.
- type GetUsagePlansInput struct {
- _ struct{} `type:"structure"`
- // The identifier of the API key associated with the usage plans.
- KeyId *string `location:"querystring" locationName:"keyId" type:"string"`
- // The number of UsagePlan resources to be returned as the result.
- Limit *int64 `location:"querystring" locationName:"limit" type:"integer"`
- // The zero-based array index specifying the position of the to-be-retrieved
- // UsagePlan resource.
- Position *string `location:"querystring" locationName:"position" type:"string"`
- }
- // String returns the string representation
- func (s GetUsagePlansInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetUsagePlansInput) GoString() string {
- return s.String()
- }
- // Represents a collection of usage plans for an AWS account.
- //
- // Create and Use Usage Plans (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html)
- type GetUsagePlansOutput struct {
- _ struct{} `type:"structure"`
- // Gets the current item when enumerating the collection of UsagePlan.
- Items []*UsagePlan `locationName:"item" type:"list"`
- Position *string `locationName:"position" type:"string"`
- }
- // String returns the string representation
- func (s GetUsagePlansOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetUsagePlansOutput) GoString() string {
- return s.String()
- }
- // The POST request to import API keys from an external source, such as a CSV-formatted
- // file.
- type ImportApiKeysInput struct {
- _ struct{} `type:"structure" payload:"Body"`
- // The payload of the POST request to import API keys. For the payload format,
- // see API Key File Format (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-key-file-format.html).
- //
- // Body is a required field
- Body []byte `locationName:"body" type:"blob" required:"true"`
- // A query parameter to indicate whether to rollback ApiKey importation (true)
- // or not (false) when error is encountered.
- FailOnWarnings *bool `location:"querystring" locationName:"failonwarnings" type:"boolean"`
- // A query parameter to specify the input format to imported API keys. Currently,
- // only the csv format is supported.
- //
- // Format is a required field
- Format *string `location:"querystring" locationName:"format" type:"string" required:"true" enum:"ApiKeysFormat"`
- }
- // String returns the string representation
- func (s ImportApiKeysInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ImportApiKeysInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ImportApiKeysInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ImportApiKeysInput"}
- if s.Body == nil {
- invalidParams.Add(request.NewErrParamRequired("Body"))
- }
- if s.Format == nil {
- invalidParams.Add(request.NewErrParamRequired("Format"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The identifier of an API key used to reference an API key in a usage plan.
- type ImportApiKeysOutput struct {
- _ struct{} `type:"structure"`
- // A list of all the ApiKey identifiers.
- Ids []*string `locationName:"ids" type:"list"`
- // A list of warning messages.
- Warnings []*string `locationName:"warnings" type:"list"`
- }
- // String returns the string representation
- func (s ImportApiKeysOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ImportApiKeysOutput) 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 is a required field
- 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 an HTTP, AWS, or Mock integration.
- //
- // In the API Gateway console, the built-in Lambda integration is an AWS integration.
- //
- // Creating an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html)
- 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.
- //
- // Example: Get integration responses of a method
- //
- // Request
- //
- // GET /restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200
- // HTTP/1.1 Content-Type: application/json Host: apigateway.us-east-1.amazonaws.com
- // X-Amz-Date: 20160607T191449Z Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160607/us-east-1/apigateway/aws4_request,
- // SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
- // Response
- //
- // The successful response returns 200 OKstatus and a payload as follows:
- //
- // { "_links": { "curies": { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html",
- // "name": "integrationresponse", "templated": true }, "self": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200",
- // "title": "200" }, "integrationresponse:delete": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200"
- // }, "integrationresponse:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200"
- // } }, "responseParameters": { "method.response.header.Content-Type": "'application/xml'"
- // }, "responseTemplates": { "application/json": "$util.urlDecode(\"%3CkinesisStreams%3E#foreach($stream
- // in $input.path('$.StreamNames'))%3Cstream%3E%3Cname%3E$stream%3C/name%3E%3C/stream%3E#end%3C/kinesisStreams%3E\")\n"
- // }, "statusCode": "200" }
- IntegrationResponses map[string]*IntegrationResponse `locationName:"integrationResponses" type:"map"`
- // Specifies how the method request body of an unmapped content type will be
- // passed through the integration request to the back end without transformation.
- // A content type is unmapped if no mapping template is defined in the integration
- // or the content type does not match any of the mapped content types, as specified
- // in requestTemplates. There are three valid values: WHEN_NO_MATCH, WHEN_NO_TEMPLATES,
- // and NEVER.
- //
- // WHEN_NO_MATCH passes the method request body through the integration request
- // to the back end without transformation when the method request content type
- // does not match any content type associated with the mapping templates defined
- // in the integration request.
- // WHEN_NO_TEMPLATES passes the method request body through the integration
- // request to the back end without transformation when no mapping template is
- // defined in the integration request. If a template is defined when this option
- // is selected, the method request of an unmapped content-type will be rejected
- // with an HTTP 415 Unsupported Media Type response.
- // NEVER rejects the method request with an HTTP 415 Unsupported Media Type
- // response when either the method request content type does not match any content
- // type associated with the mapping templates defined in the integration request
- // or no mapping template is defined in the integration request.
- PassthroughBehavior *string `locationName:"passthroughBehavior" type:"string"`
- // A key-value map specifying request parameters that are passed from the method
- // request to the back end. The key is an integration request parameter name
- // and the associated value is a method request parameter value or static value
- // that must be enclosed within single quotes and pre-encoded as required by
- // the back end. The method request parameter value must match the pattern of
- // method.request.{location}.{name}, where location is querystring, path, or
- // header and name must be a valid and unique method request 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 for integrating
- // with an HTTP back end, AWS for any AWS service endpoints, MOCK for testing
- // without actually invoking the back end, HTTP_PROXY for integrating with the
- // HTTP proxy integration, or AWS_PROXY for integrating with the Lambda proxy
- // integration type.
- 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). 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
- // back-end response.
- //
- // Creating an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html)
- type IntegrationResponse struct {
- _ struct{} `type:"structure"`
- // A key-value map specifying response parameters that are passed to the method
- // response from the back end. The key is a method response header parameter
- // name and the mapped value is an integration response header value, a static
- // value enclosed within a pair of single quotes, or a JSON expression from
- // the integration response body. The mapping key must match the pattern of
- // method.response.header.{name}, where name is a valid and unique header name.
- // The mapped non-static value must match the pattern of integration.response.header.{name}
- // or integration.response.body.{JSON-expression}, where name is a valid and
- // unique response header name and JSON-expression is a valid JSON expression
- // without the $ prefix.
- 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 back end. For example, if the success
- // response returns nothing and the error response returns some string, you
- // could use the .+ regex to match error response. However, make sure that the
- // error response does not contain any newline (\n) character in such cases.
- // If the back end is an AWS Lambda function, the AWS Lambda function error
- // header is matched. For all other HTTP and AWS back ends, 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 client-facing interface by which the client calls the API to
- // access back-end resources. A Method resource is integrated with an Integration
- // resource. Both consist of a request and one or more responses. The method
- // request takes the client input that is passed to the back end through the
- // integration request. A method response returns the output from the back end
- // to the client through an integration response. A method request is embodied
- // in a Method resource, whereas an integration request is embodied in an Integration
- // resource. On the other hand, a method response is represented by a MethodResponse
- // resource, whereas an integration response is represented by an IntegrationResponse
- // resource.
- //
- // Example: Retrive the GET method on a specified resource
- //
- // Request
- //
- // The following example request retrieves the information about the GET method
- // on an API resource (3kzxbg5sa2) of an API (fugvjdxtri).
- //
- // GET /restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET HTTP/1.1 Content-Type:
- // application/json Host: apigateway.us-east-1.amazonaws.com X-Amz-Date:
- // 20160603T210259Z Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160603/us-east-1/apigateway/aws4_request,
- // SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
- // Response
- //
- // The successful response returns a 200 OK status code and a payload similar
- // to the following:
- //
- // { "_links": { "curies": [ { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-{rel}.html",
- // "name": "integration", "templated": true }, { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html",
- // "name": "integrationresponse", "templated": true }, { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-{rel}.html",
- // "name": "method", "templated": true }, { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-response-{rel}.html",
- // "name": "methodresponse", "templated": true } ], "self": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET",
- // "name": "GET", "title": "GET" }, "integration:put": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration"
- // }, "method:delete": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET"
- // }, "method:integration": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration"
- // }, "method:responses": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200",
- // "name": "200", "title": "200" }, "method:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET"
- // }, "methodresponse:put": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/{status_code}",
- // "templated": true } }, "apiKeyRequired": true, "authorizationType": "NONE",
- // "httpMethod": "GET", "_embedded": { "method:integration": { "_links":
- // { "self": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration"
- // }, "integration:delete": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration"
- // }, "integration:responses": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200",
- // "name": "200", "title": "200" }, "integration:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration"
- // }, "integrationresponse:put": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/{status_code}",
- // "templated": true } }, "cacheKeyParameters": [], "cacheNamespace": "3kzxbg5sa2",
- // "credentials": "arn:aws:iam::123456789012:role/apigAwsProxyRole", "httpMethod":
- // "POST", "passthroughBehavior": "WHEN_NO_MATCH", "requestParameters": {
- // "integration.request.header.Content-Type": "'application/x-amz-json-1.1'"
- // }, "requestTemplates": { "application/json": "{\n}" }, "type": "AWS",
- // "uri": "arn:aws:apigateway:us-east-1:kinesis:action/ListStreams", "_embedded":
- // { "integration:responses": { "_links": { "self": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200",
- // "name": "200", "title": "200" }, "integrationresponse:delete": { "href":
- // "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200"
- // }, "integrationresponse:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200"
- // } }, "responseParameters": { "method.response.header.Content-Type": "'application/xml'"
- // }, "responseTemplates": { "application/json": "$util.urlDecode(\"%3CkinesisStreams%3E%23foreach(%24stream%20in%20%24input.path(%27%24.StreamNames%27))%3Cstream%3E%3Cname%3E%24stream%3C%2Fname%3E%3C%2Fstream%3E%23end%3C%2FkinesisStreams%3E\")"
- // }, "statusCode": "200" } } }, "method:responses": { "_links": { "self":
- // { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200",
- // "name": "200", "title": "200" }, "methodresponse:delete": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200"
- // }, "methodresponse:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200"
- // } }, "responseModels": { "application/json": "Empty" }, "responseParameters":
- // { "method.response.header.Content-Type": false }, "statusCode": "200"
- // } } }
- // In the example above, the response template for the 200 OK response maps
- // the JSON output from the ListStreams action in the back end to an XML output.
- // The mapping template is URL-encoded as %3CkinesisStreams%3E%23foreach(%24stream%20in%20%24input.path(%27%24.StreamNames%27))%3Cstream%3E%3Cname%3E%24stream%3C%2Fname%3E%3C%2Fstream%3E%23end%3C%2FkinesisStreams%3E
- // and the output is decoded using the $util.urlDecode() (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-mapping-template-reference.html#util-templat-reference)
- // helper function.
- //
- // MethodResponse, Integration, IntegrationResponse, Resource, Set up an API's method (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-method-settings.html)
- type Method struct {
- _ struct{} `type:"structure"`
- // A boolean flag specifying whether a valid ApiKey is required to invoke this
- // method.
- ApiKeyRequired *bool `locationName:"apiKeyRequired" type:"boolean"`
- // The method's authorization type.
- AuthorizationType *string `locationName:"authorizationType" type:"string"`
- // The identifier of an Authorizer to use on this method. The authorizationType
- // must be CUSTOM.
- AuthorizerId *string `locationName:"authorizerId" type:"string"`
- // The method's HTTP verb.
- HttpMethod *string `locationName:"httpMethod" type:"string"`
- // Gets the method's integration responsible for passing the client-submitted
- // request to the back end and performing necessary transformations to make
- // the request compliant with the back end.
- //
- // Example:
- //
- // Request
- //
- // GET /restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration HTTP/1.1
- // Content-Type: application/json Host: apigateway.us-east-1.amazonaws.com Content-Length:
- // 117 X-Amz-Date: 20160613T213210Z Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160613/us-east-1/apigateway/aws4_request,
- // SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
- // Response
- //
- // The successful response returns a 200 OKstatus code and a payload similar to the following:
- //
- // { "_links": { "curies": [ { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-{rel}.html",
- // "name": "integration", "templated": true }, { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html",
- // "name": "integrationresponse", "templated": true } ], "self": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration"
- // }, "integration:delete": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration"
- // }, "integration:responses": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration/responses/200",
- // "name": "200", "title": "200" }, "integration:update": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration"
- // }, "integrationresponse:put": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration/responses/{status_code}",
- // "templated": true } }, "cacheKeyParameters": [], "cacheNamespace": "0cjtch",
- // "credentials": "arn:aws:iam::123456789012:role/apigAwsProxyRole", "httpMethod":
- // "POST", "passthroughBehavior": "WHEN_NO_MATCH", "requestTemplates": { "application/json":
- // "{\n \"a\": \"$input.params('operand1')\",\n \"b\": \"$input.params('operand2')\",
- // \n \"op\": \"$input.params('operator')\" \n}" }, "type": "AWS", "uri": "arn:aws:apigateway:us-west-2:lambda:path//2015-03-31/functions/arn:aws:lambda:us-west-2:123456789012:function:Calc/invocations",
- // "_embedded": { "integration:responses": { "_links": { "self": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration/responses/200",
- // "name": "200", "title": "200" }, "integrationresponse:delete": { "href":
- // "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration/responses/200"
- // }, "integrationresponse:update": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration/responses/200"
- // } }, "responseParameters": { "method.response.header.operator": "integration.response.body.op",
- // "method.response.header.operand_2": "integration.response.body.b", "method.response.header.operand_1":
- // "integration.response.body.a" }, "responseTemplates": { "application/json":
- // "#set($res = $input.path('$'))\n{\n \"result\": \"$res.a, $res.b, $res.op
- // => $res.c\",\n \"a\" : \"$res.a\",\n \"b\" : \"$res.b\",\n \"op\" : \"$res.op\",\n
- // \"c\" : \"$res.c\"\n}" }, "selectionPattern": "", "statusCode": "200" } }
- // }
- MethodIntegration *Integration `locationName:"methodIntegration" type:"structure"`
- // Gets a method response associated with a given HTTP status code.
- //
- // The collection of method responses are encapsulated in a key-value map, where
- // the key is a response's HTTP status code and the value is a MethodResponse
- // resource that specifies the response returned to the caller from the back
- // end through the integration response.
- //
- // Example: Get a 200 OK response of a GET method
- //
- // Request
- //
- // GET /restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200 HTTP/1.1
- // Content-Type: application/json Host: apigateway.us-east-1.amazonaws.com
- // Content-Length: 117 X-Amz-Date: 20160613T215008Z Authorization: AWS4-HMAC-SHA256
- // Credential={access_key_ID}/20160613/us-east-1/apigateway/aws4_request,
- // SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
- // Response
- //
- // The successful response returns a 200 OK status code and a payload similar
- // to the following:
- //
- // { "_links": { "curies": { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-response-{rel}.html",
- // "name": "methodresponse", "templated": true }, "self": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200",
- // "title": "200" }, "methodresponse:delete": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200"
- // }, "methodresponse:update": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200"
- // } }, "responseModels": { "application/json": "Empty" }, "responseParameters":
- // { "method.response.header.operator": false, "method.response.header.operand_2":
- // false, "method.response.header.operand_1": false }, "statusCode": "200"
- // }
- MethodResponses map[string]*MethodResponse `locationName:"methodResponses" type:"map"`
- // A key-value map specifying data schemas, represented by Model resources,
- // (as the mapped value) of the request payloads of given content types (as
- // the mapping key).
- RequestModels map[string]*string `locationName:"requestModels" type:"map"`
- // A key-value map defining required or optional method request parameters that
- // can be accepted by Amazon API Gateway. A key is a method request parameter
- // name matching the pattern of method.request.{location}.{name}, where location
- // is querystring, path, or header and name is a valid and unique parameter
- // name. The value associated with the key is a Boolean flag indicating whether
- // the parameter is required (true) or optional (false). The method request
- // parameter names defined here are available in Integration to be mapped 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 of a given HTTP status code returned to the
- // client. The method response is passed from the back end through the associated
- // integration response that can be transformed using a mapping template.
- //
- // Example: A MethodResponse instance of an API
- //
- // Request
- //
- // The example request retrieves a MethodResponse of the 200 status code.
- //
- // GET /restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200
- // HTTP/1.1 Content-Type: application/json Host: apigateway.us-east-1.amazonaws.com
- // X-Amz-Date: 20160603T222952Z Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160603/us-east-1/apigateway/aws4_request,
- // SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
- // Response
- //
- // The successful response returns 200 OK status and a payload as follows:
- //
- // { "_links": { "curies": { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-response-{rel}.html",
- // "name": "methodresponse", "templated": true }, "self": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200",
- // "title": "200" }, "methodresponse:delete": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200"
- // }, "methodresponse:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200"
- // } }, "responseModels": { "application/json": "Empty" }, "responseParameters":
- // { "method.response.header.Content-Type": false }, "statusCode": "200"
- // }
- 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"`
- // A key-value map specifying required or optional response parameters that
- // Amazon API Gateway can send back to the caller. A key defines a method response
- // header and the value specifies whether the associated method response header
- // is required or not. The expression of the key must match the pattern method.response.header.{name},
- // where name is a valid and unique header name. Amazon API Gateway passes certain
- // integration response data to the method response headers specified here according
- // to the mapping you prescribe in the API's IntegrationResponse. The integration
- // response data that can be mapped include an integration response header expressed
- // in integration.response.header.{name}, a static value enclosed within a pair
- // of single quotes (e.g., 'application/json'), or a JSON expression from the
- // back-end response payload in the form of integration.response.body.{JSON-expression},
- // where JSON-expression is a valid JSON expression without the $ prefix.)
- 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
- // 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 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 how to handle 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 data structure of a method's request or response payload.
- //
- // A request model defines the data structure of the client-supplied request
- // payload. A response model defines the data structure of the response payload
- // returned by the back end. Although not required, models are useful for mapping
- // payloads between the front end and back end.
- //
- // A model is used for generating an API's SDK, validating the input request
- // body, and creating a skeletal mapping template.
- //
- // Method, MethodResponse, Models and Mappings (http://docs.aws.amazon.com/apigateway/latest/developerguide/models-mappings.html)
- 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) model. Do not include
- // "\*/" characters in the description of any properties because such "\*/"
- // characters may be interpreted as the closing marker for comments in some
- // languages, such as Java or JavaScript, causing the installation of your API's
- // SDK generated by API Gateway to fail.
- 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"`
- // Not supported.
- From *string `locationName:"from" type:"string"`
- // An update operation to be performed with this PATCH request. The valid value
- // can be "add", "remove", or "replace". Not all valid operations are supported
- // for a given resource. Support of the operations depends on specific operational
- // contexts. Attempts to apply an unsupported operation on a resource will return
- // an error message.
- Op *string `locationName:"op" type:"string" enum:"Op"`
- // The op operation's target, as identified by a JSON Pointer (https://tools.ietf.org/html/draft-ietf-appsawg-json-pointer-08)
- // value that references a location within the targeted resource. For example,
- // if the target resource has an updateable property of {"name":"value"}, the
- // path for this property is /name. If the name property value is a JSON object
- // (e.g., {"name": {"child/name": "child-value"}}), the path for the child/name
- // property will be /name/child~1name. Any slash ("/") character appearing in
- // path names must be escaped with "~1", as shown in the example above. Each
- // op operation can have only one path associated with it.
- Path *string `locationName:"path" type:"string"`
- // The new target value of the update operation.
- 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 is a required field
- 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 mapping templates specified as the
- // requestTemplates property on the Integration resource. 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 back end without transformation.
- //
- // * NEVER rejects unmapped content types with an HTTP 415 'Unsupported Media
- // Type' response.
- //
- // * WHEN_NO_TEMPLATES allows 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"`
- // A key-value map specifying request parameters that are passed from the method
- // request to the back end. The key is an integration request parameter name
- // and the associated value is a method request parameter value or static value
- // that must be enclosed within single quotes and pre-encoded as required by
- // the back end. The method request parameter value must match the pattern of
- // method.request.{location}.{name}, where location is querystring, path, or
- // header and name must be a valid and unique method request 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 is a required field
- ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"`
- // Specifies a put integration request's API identifier.
- //
- // RestApiId is a required field
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- // Specifies a put integration input's type.
- //
- // Type is a required field
- 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 is a required field
- HttpMethod *string `location:"uri" locationName:"http_method" type:"string" required:"true"`
- // Specifies a put integration response request's resource identifier.
- //
- // ResourceId is a required field
- ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"`
- // A key-value map specifying response parameters that are passed to the method
- // response from the back end. The key is a method response header parameter
- // name and the mapped value is an integration response header value, a static
- // value enclosed within a pair of single quotes, or a JSON expression from
- // the integration response body. The mapping key must match the pattern of
- // method.response.header.{name}, where name is a valid and unique header name.
- // The mapped non-static value must match the pattern of integration.response.header.{name}
- // or integration.response.body.{JSON-expression}, where name must be a valid
- // and unique response header name and JSON-expression a valid JSON expression
- // without the $ prefix.
- 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 is a required field
- 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 is a required field
- 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 is a required field
- 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 method request's HTTP method type.
- //
- // HttpMethod is a required field
- 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"`
- // A key-value map defining required or optional method request parameters that
- // can be accepted by Amazon API Gateway. A key defines a method request parameter
- // name matching the pattern of method.request.{location}.{name}, where location
- // is querystring, path, or header and name is a valid and unique parameter
- // name. The value associated with the key is a Boolean flag indicating whether
- // the parameter is required (true) or optional (false). The method request
- // parameter names defined here are available in Integration to be mapped to
- // integration request parameters or body-mapping templates.
- RequestParameters map[string]*bool `locationName:"requestParameters" type:"map"`
- // The Resource identifier for the new Method resource.
- //
- // ResourceId is a required field
- ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"`
- // The RestApi identifier for the new Method resource.
- //
- // RestApiId is a required field
- 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 of the Method resource.
- //
- // HttpMethod is a required field
- HttpMethod *string `location:"uri" locationName:"http_method" type:"string" required:"true"`
- // The Resource identifier for the Method resource.
- //
- // ResourceId is a required field
- 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"`
- // A key-value map specifying required or optional response parameters that
- // Amazon API Gateway can send back to the caller. A key defines a method response
- // header name and the associated value is a Boolean flag indicating whether
- // the method response parameter is required or not. The method response header
- // names must match the pattern of method.response.header.{name}, where name
- // is a valid and unique header name. The response parameter names defined here
- // are available in the integration response to be mapped from an integration
- // response header expressed in integration.response.header.{name}, a static
- // value enclosed within a pair of single quotes (e.g., 'application/json'),
- // or a JSON expression from the back-end response payload in the form of integration.response.body.{JSON-expression},
- // where JSON-expression is a valid JSON expression without the $ prefix.)
- ResponseParameters map[string]*bool `locationName:"responseParameters" type:"map"`
- // The RestApi identifier for the Method resource.
- //
- // RestApiId is a required field
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- // The method response's status code.
- //
- // StatusCode is a required field
- 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 is a required field
- 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 is a required field
- 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
- }
- // Quotas configured for a usage plan.
- type QuotaSettings struct {
- _ struct{} `type:"structure"`
- // The maximum number of requests that can be made in a given time period.
- Limit *int64 `locationName:"limit" type:"integer"`
- // The number of requests subtracted from the given limit in the initial time
- // period.
- Offset *int64 `locationName:"offset" type:"integer"`
- // The time period in which the limit applies. Valid values are "DAY", "WEEK"
- // or "MONTH".
- Period *string `locationName:"period" type:"string" enum:"QuotaPeriodType"`
- }
- // String returns the string representation
- func (s QuotaSettings) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s QuotaSettings) GoString() string {
- return s.String()
- }
- // Represents an API resource.
- //
- // Create an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html)
- 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"`
- // Gets an API resource's method of a given HTTP verb.
- //
- // The resource methods are a map of methods indexed by methods' HTTP verbs
- // enabled on the resource. This method map is included in the 200 OK response
- // of the GET /restapis/{restapi_id}/resources/{resource_id} or GET /restapis/{restapi_id}/resources/{resource_id}?embed=methods
- // request.
- //
- // Example: Get the GET method of an API resource
- //
- // Request
- //
- // GET /restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET HTTP/1.1 Content-Type:
- // application/json Host: apigateway.us-east-1.amazonaws.com X-Amz-Date: 20160608T031827Z
- // Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160608/us-east-1/apigateway/aws4_request,
- // SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
- // Response
- //
- // { "_links": { "curies": [ { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-{rel}.html",
- // "name": "integration", "templated": true }, { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html",
- // "name": "integrationresponse", "templated": true }, { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-{rel}.html",
- // "name": "method", "templated": true }, { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-response-{rel}.html",
- // "name": "methodresponse", "templated": true } ], "self": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET",
- // "name": "GET", "title": "GET" }, "integration:put": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration"
- // }, "method:delete": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET"
- // }, "method:integration": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration"
- // }, "method:responses": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200",
- // "name": "200", "title": "200" }, "method:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET"
- // }, "methodresponse:put": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/{status_code}",
- // "templated": true } }, "apiKeyRequired": false, "authorizationType": "NONE",
- // "httpMethod": "GET", "_embedded": { "method:integration": { "_links": { "self":
- // { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration"
- // }, "integration:delete": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration"
- // }, "integration:responses": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200",
- // "name": "200", "title": "200" }, "integration:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration"
- // }, "integrationresponse:put": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/{status_code}",
- // "templated": true } }, "cacheKeyParameters": [], "cacheNamespace": "3kzxbg5sa2",
- // "credentials": "arn:aws:iam::123456789012:role/apigAwsProxyRole", "httpMethod":
- // "POST", "passthroughBehavior": "WHEN_NO_MATCH", "requestParameters": { "integration.request.header.Content-Type":
- // "'application/x-amz-json-1.1'" }, "requestTemplates": { "application/json":
- // "{\n}" }, "type": "AWS", "uri": "arn:aws:apigateway:us-east-1:kinesis:action/ListStreams",
- // "_embedded": { "integration:responses": { "_links": { "self": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200",
- // "name": "200", "title": "200" }, "integrationresponse:delete": { "href":
- // "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200"
- // }, "integrationresponse:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200"
- // } }, "responseParameters": { "method.response.header.Content-Type": "'application/xml'"
- // }, "responseTemplates": { "application/json": "$util.urlDecode(\"%3CkinesisStreams%3E#foreach($stream
- // in $input.path('$.StreamNames'))%3Cstream%3E%3Cname%3E$stream%3C/name%3E%3C/stream%3E#end%3C/kinesisStreams%3E\")\n"
- // }, "statusCode": "200" } } }, "method:responses": { "_links": { "self": {
- // "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200",
- // "name": "200", "title": "200" }, "methodresponse:delete": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200"
- // }, "methodresponse:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200"
- // } }, "responseModels": { "application/json": "Empty" }, "responseParameters":
- // { "method.response.header.Content-Type": false }, "statusCode": "200" } }
- // }
- // If the OPTIONS is enabled on the resource, you can follow the example here
- // to get that method. Just replace the GET of the last path segment in the
- // request URL with OPTIONS.
- 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.
- //
- // Create an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html)
- 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).
- 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"`
- // The warning messages reported when failonwarnings is turned on during API
- // import.
- 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.
- //
- // Deploy an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-deploy-api.html)
- 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"`
- // The identifier of a client certificate for an API stage.
- 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).
- 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).
- LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix"`
- // A map that defines the method settings for a Stage resource. Keys (designated
- // as /{method_setting_key below) are method paths defined as {resource_path}/{http_method}
- // for an individual method override, or /\*/\* for overriding 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 and underscore 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 is a required field
- 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 is a required field
- 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 for a custom Authorizer
- type TestInvokeAuthorizerOutput struct {
- _ struct{} `type:"structure"`
- Authorization map[string][]*string `locationName:"authorization" type:"map"`
- // The open identity claims (http://openid.net/specs/openid-connect-core-1_0.html#StandardClaims),
- // with any supported custom attributes, returned from the Cognito Your User
- // Pool configured for the API.
- 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 JSON policy 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 the certificate when making the HTTPS request to the defined back-end
- // 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 is a required field
- 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 is a required field
- ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"`
- // Specifies a test invoke method request's API identifier.
- //
- // RestApiId is a required field
- 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 the HTTP method.
- //
- // Test API using the API Gateway console (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-test-method.html#how-to-test-method-console)
- type TestInvokeMethodOutput struct {
- _ struct{} `type:"structure"`
- // The body of the HTTP response.
- Body *string `locationName:"body" type:"string"`
- // The headers of the 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()
- }
- // The API request rate limits.
- type ThrottleSettings struct {
- _ struct{} `type:"structure"`
- // The API request burst limit, the maximum rate limit over a time ranging from
- // one to a few seconds, depending upon whether the underlying token bucket
- // is at its full capacity.
- BurstLimit *int64 `locationName:"burstLimit" type:"integer"`
- // The API request steady-state rate limit.
- 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 update operations to be applied to the specified resource and in
- // the order specified in this 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 is a required field
- ApiKey *string `location:"uri" locationName:"api_Key" type:"string" required:"true"`
- // A list of update operations to be applied to the specified resource and in
- // the order specified in this 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 is a required field
- AuthorizerId *string `location:"uri" locationName:"authorizer_id" type:"string" required:"true"`
- // A list of update operations to be applied to the specified resource and in
- // the order specified in this list.
- PatchOperations []*PatchOperation `locationName:"patchOperations" type:"list"`
- // The RestApi identifier for the Authorizer resource.
- //
- // RestApiId is a required field
- 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 is a required field
- BasePath *string `location:"uri" locationName:"base_path" type:"string" required:"true"`
- // The domain name of the BasePathMapping resource to change.
- //
- // DomainName is a required field
- DomainName *string `location:"uri" locationName:"domain_name" type:"string" required:"true"`
- // A list of update operations to be applied to the specified resource and in
- // the order specified in this 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 is a required field
- ClientCertificateId *string `location:"uri" locationName:"clientcertificate_id" type:"string" required:"true"`
- // A list of update operations to be applied to the specified resource and in
- // the order specified in this 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 replacement identifier for the Deployment resource to change information
- // about.
- //
- // DeploymentId is a required field
- DeploymentId *string `location:"uri" locationName:"deployment_id" type:"string" required:"true"`
- // A list of update operations to be applied to the specified resource and in
- // the order specified in this list.
- PatchOperations []*PatchOperation `locationName:"patchOperations" type:"list"`
- // The replacement identifier of the RestApi resource for the Deployment resource
- // to change information about.
- //
- // RestApiId is a required field
- 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 is a required field
- DomainName *string `location:"uri" locationName:"domain_name" type:"string" required:"true"`
- // A list of update operations to be applied to the specified resource and in
- // the order specified in this 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 is a required field
- HttpMethod *string `location:"uri" locationName:"http_method" type:"string" required:"true"`
- // A list of update operations to be applied to the specified resource and in
- // the order specified in this list.
- PatchOperations []*PatchOperation `locationName:"patchOperations" type:"list"`
- // Represents an update integration request's resource identifier.
- //
- // ResourceId is a required field
- ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"`
- // Represents an update integration request's API identifier.
- //
- // RestApiId is a required field
- 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 is a required field
- HttpMethod *string `location:"uri" locationName:"http_method" type:"string" required:"true"`
- // A list of update operations to be applied to the specified resource and in
- // the order specified in this list.
- PatchOperations []*PatchOperation `locationName:"patchOperations" type:"list"`
- // Specifies an update integration response request's resource identifier.
- //
- // ResourceId is a required field
- ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"`
- // Specifies an update integration response request's API identifier.
- //
- // RestApiId is a required field
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- // Specifies an update integration response request's status code.
- //
- // StatusCode is a required field
- 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 of the Method resource.
- //
- // HttpMethod is a required field
- HttpMethod *string `location:"uri" locationName:"http_method" type:"string" required:"true"`
- // A list of update operations to be applied to the specified resource and in
- // the order specified in this list.
- PatchOperations []*PatchOperation `locationName:"patchOperations" type:"list"`
- // The Resource identifier for the Method resource.
- //
- // ResourceId is a required field
- ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"`
- // The RestApi identifier for the Method resource.
- //
- // RestApiId is a required field
- 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 of the Method resource.
- //
- // HttpMethod is a required field
- HttpMethod *string `location:"uri" locationName:"http_method" type:"string" required:"true"`
- // A list of update operations to be applied to the specified resource and in
- // the order specified in this list.
- PatchOperations []*PatchOperation `locationName:"patchOperations" type:"list"`
- // The Resource identifier for the MethodResponse resource.
- //
- // ResourceId is a required field
- ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"`
- // The RestApi identifier for the MethodResponse resource.
- //
- // RestApiId is a required field
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- // The status code for the MethodResponse resource.
- //
- // StatusCode is a required field
- 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 is a required field
- ModelName *string `location:"uri" locationName:"model_name" type:"string" required:"true"`
- // A list of update operations to be applied to the specified resource and in
- // the order specified in this list.
- PatchOperations []*PatchOperation `locationName:"patchOperations" type:"list"`
- // The RestApi identifier under which the model exists.
- //
- // RestApiId is a required field
- 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 update operations to be applied to the specified resource and in
- // the order specified in this list.
- PatchOperations []*PatchOperation `locationName:"patchOperations" type:"list"`
- // The identifier of the Resource resource.
- //
- // ResourceId is a required field
- ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"`
- // The RestApi identifier for the Resource resource.
- //
- // RestApiId is a required field
- 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 update operations to be applied to the specified resource and in
- // the order specified in this list.
- PatchOperations []*PatchOperation `locationName:"patchOperations" type:"list"`
- // The ID of the RestApi you want to update.
- //
- // RestApiId is a required field
- 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 update operations to be applied to the specified resource and in
- // the order specified in this list.
- PatchOperations []*PatchOperation `locationName:"patchOperations" type:"list"`
- // The identifier of the RestApi resource for the Stage resource to change information
- // about.
- //
- // RestApiId is a required field
- RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"`
- // The name of the Stage resource to change information about.
- //
- // StageName is a required field
- 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 PATCH request to grant a temporary extension to the reamining quota of
- // a usage plan associated with a specified API key.
- type UpdateUsageInput struct {
- _ struct{} `type:"structure"`
- // The identifier of the API key associated with the usage plan in which a temporary
- // extension is granted to the remaining quota.
- //
- // KeyId is a required field
- KeyId *string `location:"uri" locationName:"keyId" type:"string" required:"true"`
- // A list of update operations to be applied to the specified resource and in
- // the order specified in this list.
- PatchOperations []*PatchOperation `locationName:"patchOperations" type:"list"`
- // The Id of the usage plan associated with the usage data.
- //
- // UsagePlanId is a required field
- UsagePlanId *string `location:"uri" locationName:"usageplanId" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s UpdateUsageInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateUsageInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateUsageInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateUsageInput"}
- if s.KeyId == nil {
- invalidParams.Add(request.NewErrParamRequired("KeyId"))
- }
- if s.UsagePlanId == nil {
- invalidParams.Add(request.NewErrParamRequired("UsagePlanId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The PATCH request to update a usage plan of a given plan Id.
- type UpdateUsagePlanInput struct {
- _ struct{} `type:"structure"`
- // A list of update operations to be applied to the specified resource and in
- // the order specified in this list.
- PatchOperations []*PatchOperation `locationName:"patchOperations" type:"list"`
- // The Id of the to-be-updated usage plan.
- //
- // UsagePlanId is a required field
- UsagePlanId *string `location:"uri" locationName:"usageplanId" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s UpdateUsagePlanInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateUsagePlanInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateUsagePlanInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateUsagePlanInput"}
- if s.UsagePlanId == nil {
- invalidParams.Add(request.NewErrParamRequired("UsagePlanId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the usage data of a usage plan.
- //
- // Create and Use Usage Plans (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html), Manage Usage in a Usage Plan (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-create-usage-plans-with-console.html#api-gateway-usage-plan-manage-usage)
- type Usage struct {
- _ struct{} `type:"structure"`
- // The ending date of the usage data.
- EndDate *string `locationName:"endDate" type:"string"`
- // The usage data, as daily logs of used and remaining quotas, over the specified
- // time interval indexed over the API keys in a usage plan. For example, {...,
- // "values" : { "{api_key}" : [ [0, 100], [10, 90], [100, 10]]}, where {api_key}
- // stands for an API key value and the daily log entry is of the format [used
- // quota, remaining quota].
- Items map[string][][]*int64 `locationName:"values" type:"map"`
- Position *string `locationName:"position" type:"string"`
- // The starting date of the usage data.
- StartDate *string `locationName:"startDate" type:"string"`
- // The plan Id associated with this usage data.
- UsagePlanId *string `locationName:"usagePlanId" type:"string"`
- }
- // String returns the string representation
- func (s Usage) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Usage) GoString() string {
- return s.String()
- }
- // Represents a usage plan than can specify who can assess associated API stages
- // with specified request limits and quotas.
- //
- // In a usage plan, you associate an API by specifying the API's Id and a stage
- // name of the specified API. You add plan customers by adding API keys to the
- // plan.
- //
- // Create and Use Usage Plans (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html)
- type UsagePlan struct {
- _ struct{} `type:"structure"`
- // The associated API stages of a usage plan.
- ApiStages []*ApiStage `locationName:"apiStages" type:"list"`
- // The description of a usage plan.
- Description *string `locationName:"description" type:"string"`
- // The identifier of a UsagePlan resource.
- Id *string `locationName:"id" type:"string"`
- // The name of a usage plan.
- Name *string `locationName:"name" type:"string"`
- // The maximum number of permitted requests per a given unit time interval.
- Quota *QuotaSettings `locationName:"quota" type:"structure"`
- // The request throttle limits of a usage plan.
- Throttle *ThrottleSettings `locationName:"throttle" type:"structure"`
- }
- // String returns the string representation
- func (s UsagePlan) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UsagePlan) GoString() string {
- return s.String()
- }
- // Represents a usage plan key to identify a plan customer.
- //
- // To associate an API stage with a selected API key in a usage plan, you must
- // create a UsagePlanKey resource to represent the selected ApiKey.
- //
- // " Create and Use Usage Plans (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html)
- type UsagePlanKey struct {
- _ struct{} `type:"structure"`
- // The Id of a usage plan key.
- Id *string `locationName:"id" type:"string"`
- // The name of a usage plan key.
- Name *string `locationName:"name" type:"string"`
- // The type of a usage plan key. Currently, the valid key type is API_KEY.
- Type *string `locationName:"type" type:"string"`
- // The value of a usage plan key.
- Value *string `locationName:"value" type:"string"`
- }
- // String returns the string representation
- func (s UsagePlanKey) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UsagePlanKey) GoString() string {
- return s.String()
- }
- const (
- // ApiKeysFormatCsv is a ApiKeysFormat enum value
- ApiKeysFormatCsv = "csv"
- )
- // The authorizer type. the only current value is TOKEN.
- const (
- // AuthorizerTypeToken is a AuthorizerType enum value
- AuthorizerTypeToken = "TOKEN"
- // AuthorizerTypeCognitoUserPools is a AuthorizerType enum value
- AuthorizerTypeCognitoUserPools = "COGNITO_USER_POOLS"
- )
- // Returns the size of the CacheCluster.
- const (
- // CacheClusterSize05 is a CacheClusterSize enum value
- CacheClusterSize05 = "0.5"
- // CacheClusterSize16 is a CacheClusterSize enum value
- CacheClusterSize16 = "1.6"
- // CacheClusterSize61 is a CacheClusterSize enum value
- CacheClusterSize61 = "6.1"
- // CacheClusterSize135 is a CacheClusterSize enum value
- CacheClusterSize135 = "13.5"
- // CacheClusterSize284 is a CacheClusterSize enum value
- CacheClusterSize284 = "28.4"
- // CacheClusterSize582 is a CacheClusterSize enum value
- CacheClusterSize582 = "58.2"
- // CacheClusterSize118 is a CacheClusterSize enum value
- CacheClusterSize118 = "118"
- // CacheClusterSize237 is a CacheClusterSize enum value
- CacheClusterSize237 = "237"
- )
- // Returns the status of the CacheCluster.
- const (
- // CacheClusterStatusCreateInProgress is a CacheClusterStatus enum value
- CacheClusterStatusCreateInProgress = "CREATE_IN_PROGRESS"
- // CacheClusterStatusAvailable is a CacheClusterStatus enum value
- CacheClusterStatusAvailable = "AVAILABLE"
- // CacheClusterStatusDeleteInProgress is a CacheClusterStatus enum value
- CacheClusterStatusDeleteInProgress = "DELETE_IN_PROGRESS"
- // CacheClusterStatusNotAvailable is a CacheClusterStatus enum value
- CacheClusterStatusNotAvailable = "NOT_AVAILABLE"
- // CacheClusterStatusFlushInProgress is a CacheClusterStatus enum value
- CacheClusterStatusFlushInProgress = "FLUSH_IN_PROGRESS"
- )
- // The integration type. The valid value is HTTP for integrating with an HTTP
- // back end, AWS for any AWS service endpoints, MOCK for testing without actually
- // invoking the back end, HTTP_PROXY for integrating with the HTTP proxy integration,
- // or AWS_PROXY for integrating with the Lambda proxy integration type.
- const (
- // IntegrationTypeHttp is a IntegrationType enum value
- IntegrationTypeHttp = "HTTP"
- // IntegrationTypeAws is a IntegrationType enum value
- IntegrationTypeAws = "AWS"
- // IntegrationTypeMock is a IntegrationType enum value
- IntegrationTypeMock = "MOCK"
- // IntegrationTypeHttpProxy is a IntegrationType enum value
- IntegrationTypeHttpProxy = "HTTP_PROXY"
- // IntegrationTypeAwsProxy is a IntegrationType enum value
- IntegrationTypeAwsProxy = "AWS_PROXY"
- )
- const (
- // OpAdd is a Op enum value
- OpAdd = "add"
- // OpRemove is a Op enum value
- OpRemove = "remove"
- // OpReplace is a Op enum value
- OpReplace = "replace"
- // OpMove is a Op enum value
- OpMove = "move"
- // OpCopy is a Op enum value
- OpCopy = "copy"
- // OpTest is a Op enum value
- OpTest = "test"
- )
- const (
- // PutModeMerge is a PutMode enum value
- PutModeMerge = "merge"
- // PutModeOverwrite is a PutMode enum value
- PutModeOverwrite = "overwrite"
- )
- const (
- // QuotaPeriodTypeDay is a QuotaPeriodType enum value
- QuotaPeriodTypeDay = "DAY"
- // QuotaPeriodTypeWeek is a QuotaPeriodType enum value
- QuotaPeriodTypeWeek = "WEEK"
- // QuotaPeriodTypeMonth is a QuotaPeriodType enum value
- QuotaPeriodTypeMonth = "MONTH"
- )
- const (
- // UnauthorizedCacheControlHeaderStrategyFailWith403 is a UnauthorizedCacheControlHeaderStrategy enum value
- UnauthorizedCacheControlHeaderStrategyFailWith403 = "FAIL_WITH_403"
- // UnauthorizedCacheControlHeaderStrategySucceedWithResponseHeader is a UnauthorizedCacheControlHeaderStrategy enum value
- UnauthorizedCacheControlHeaderStrategySucceedWithResponseHeader = "SUCCEED_WITH_RESPONSE_HEADER"
- // UnauthorizedCacheControlHeaderStrategySucceedWithoutResponseHeader is a UnauthorizedCacheControlHeaderStrategy enum value
- UnauthorizedCacheControlHeaderStrategySucceedWithoutResponseHeader = "SUCCEED_WITHOUT_RESPONSE_HEADER"
- )
|