| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698 |
- // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
- package appsync
- import (
- "github.com/aws/aws-sdk-go/aws"
- "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 will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateApiKey for more information on using the CreateApiKey
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // 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)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateApiKey
- func (c *AppSync) CreateApiKeyRequest(input *CreateApiKeyInput) (req *request.Request, output *CreateApiKeyOutput) {
- op := &request.Operation{
- Name: opCreateApiKey,
- HTTPMethod: "POST",
- HTTPPath: "/v1/apis/{apiId}/apikeys",
- }
- if input == nil {
- input = &CreateApiKeyInput{}
- }
- output = &CreateApiKeyOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateApiKey API operation for AWS AppSync.
- //
- // Creates a unique key that you can distribute to clients who are executing
- // your 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 AWS AppSync's
- // API operation CreateApiKey for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeBadRequestException "BadRequestException"
- // The request is not well formed. For example, a value is invalid or a required
- // field is missing. Check the field values, and then try again.
- //
- // * ErrCodeNotFoundException "NotFoundException"
- // The resource specified in the request was not found. Check the resource,
- // and then try again.
- //
- // * ErrCodeLimitExceededException "LimitExceededException"
- // The request exceeded a limit. Try your request again.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeLimitExceededException "LimitExceededException"
- // The request exceeded a limit. Try your request again.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An internal AWS AppSync error occurred. Try your request again.
- //
- // * ErrCodeApiKeyLimitExceededException "ApiKeyLimitExceededException"
- // The API key exceeded a limit. Try your request again.
- //
- // * ErrCodeApiKeyValidityOutOfBoundsException "ApiKeyValidityOutOfBoundsException"
- // The API key expiration must be set to a value between 1 and 365 days from
- // creation (for CreateApiKey) or from update (for UpdateApiKey).
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateApiKey
- func (c *AppSync) CreateApiKey(input *CreateApiKeyInput) (*CreateApiKeyOutput, error) {
- req, out := c.CreateApiKeyRequest(input)
- return out, req.Send()
- }
- // CreateApiKeyWithContext is the same as CreateApiKey with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateApiKey for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppSync) CreateApiKeyWithContext(ctx aws.Context, input *CreateApiKeyInput, opts ...request.Option) (*CreateApiKeyOutput, error) {
- req, out := c.CreateApiKeyRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateDataSource = "CreateDataSource"
- // CreateDataSourceRequest generates a "aws/request.Request" representing the
- // client's request for the CreateDataSource operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateDataSource for more information on using the CreateDataSource
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreateDataSourceRequest method.
- // req, resp := client.CreateDataSourceRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateDataSource
- func (c *AppSync) CreateDataSourceRequest(input *CreateDataSourceInput) (req *request.Request, output *CreateDataSourceOutput) {
- op := &request.Operation{
- Name: opCreateDataSource,
- HTTPMethod: "POST",
- HTTPPath: "/v1/apis/{apiId}/datasources",
- }
- if input == nil {
- input = &CreateDataSourceInput{}
- }
- output = &CreateDataSourceOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateDataSource API operation for AWS AppSync.
- //
- // Creates a DataSource object.
- //
- // 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 AWS AppSync's
- // API operation CreateDataSource for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeBadRequestException "BadRequestException"
- // The request is not well formed. For example, a value is invalid or a required
- // field is missing. Check the field values, and then try again.
- //
- // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
- // Another modification is in progress at this time and it must complete before
- // you can make your change.
- //
- // * ErrCodeNotFoundException "NotFoundException"
- // The resource specified in the request was not found. Check the resource,
- // and then try again.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An internal AWS AppSync error occurred. Try your request again.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateDataSource
- func (c *AppSync) CreateDataSource(input *CreateDataSourceInput) (*CreateDataSourceOutput, error) {
- req, out := c.CreateDataSourceRequest(input)
- return out, req.Send()
- }
- // CreateDataSourceWithContext is the same as CreateDataSource with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateDataSource for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppSync) CreateDataSourceWithContext(ctx aws.Context, input *CreateDataSourceInput, opts ...request.Option) (*CreateDataSourceOutput, error) {
- req, out := c.CreateDataSourceRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateFunction = "CreateFunction"
- // CreateFunctionRequest generates a "aws/request.Request" representing the
- // client's request for the CreateFunction operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateFunction for more information on using the CreateFunction
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreateFunctionRequest method.
- // req, resp := client.CreateFunctionRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateFunction
- func (c *AppSync) CreateFunctionRequest(input *CreateFunctionInput) (req *request.Request, output *CreateFunctionOutput) {
- op := &request.Operation{
- Name: opCreateFunction,
- HTTPMethod: "POST",
- HTTPPath: "/v1/apis/{apiId}/functions",
- }
- if input == nil {
- input = &CreateFunctionInput{}
- }
- output = &CreateFunctionOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateFunction API operation for AWS AppSync.
- //
- // Creates a Function object.
- //
- // A function is a reusable entity. Multiple functions can be used to compose
- // the resolver logic.
- //
- // 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 AWS AppSync's
- // API operation CreateFunction for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
- // Another modification is in progress at this time and it must complete before
- // you can make your change.
- //
- // * ErrCodeNotFoundException "NotFoundException"
- // The resource specified in the request was not found. Check the resource,
- // and then try again.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An internal AWS AppSync error occurred. Try your request again.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateFunction
- func (c *AppSync) CreateFunction(input *CreateFunctionInput) (*CreateFunctionOutput, error) {
- req, out := c.CreateFunctionRequest(input)
- return out, req.Send()
- }
- // CreateFunctionWithContext is the same as CreateFunction with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateFunction for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppSync) CreateFunctionWithContext(ctx aws.Context, input *CreateFunctionInput, opts ...request.Option) (*CreateFunctionOutput, error) {
- req, out := c.CreateFunctionRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateGraphqlApi = "CreateGraphqlApi"
- // CreateGraphqlApiRequest generates a "aws/request.Request" representing the
- // client's request for the CreateGraphqlApi operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateGraphqlApi for more information on using the CreateGraphqlApi
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreateGraphqlApiRequest method.
- // req, resp := client.CreateGraphqlApiRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateGraphqlApi
- func (c *AppSync) CreateGraphqlApiRequest(input *CreateGraphqlApiInput) (req *request.Request, output *CreateGraphqlApiOutput) {
- op := &request.Operation{
- Name: opCreateGraphqlApi,
- HTTPMethod: "POST",
- HTTPPath: "/v1/apis",
- }
- if input == nil {
- input = &CreateGraphqlApiInput{}
- }
- output = &CreateGraphqlApiOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateGraphqlApi API operation for AWS AppSync.
- //
- // Creates a GraphqlApi object.
- //
- // 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 AWS AppSync's
- // API operation CreateGraphqlApi for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeBadRequestException "BadRequestException"
- // The request is not well formed. For example, a value is invalid or a required
- // field is missing. Check the field values, and then try again.
- //
- // * ErrCodeLimitExceededException "LimitExceededException"
- // The request exceeded a limit. Try your request again.
- //
- // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
- // Another modification is in progress at this time and it must complete before
- // you can make your change.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An internal AWS AppSync error occurred. Try your request again.
- //
- // * ErrCodeApiLimitExceededException "ApiLimitExceededException"
- // The GraphQL API exceeded a limit. Try your request again.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateGraphqlApi
- func (c *AppSync) CreateGraphqlApi(input *CreateGraphqlApiInput) (*CreateGraphqlApiOutput, error) {
- req, out := c.CreateGraphqlApiRequest(input)
- return out, req.Send()
- }
- // CreateGraphqlApiWithContext is the same as CreateGraphqlApi with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateGraphqlApi for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppSync) CreateGraphqlApiWithContext(ctx aws.Context, input *CreateGraphqlApiInput, opts ...request.Option) (*CreateGraphqlApiOutput, error) {
- req, out := c.CreateGraphqlApiRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateResolver = "CreateResolver"
- // CreateResolverRequest generates a "aws/request.Request" representing the
- // client's request for the CreateResolver operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateResolver for more information on using the CreateResolver
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreateResolverRequest method.
- // req, resp := client.CreateResolverRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateResolver
- func (c *AppSync) CreateResolverRequest(input *CreateResolverInput) (req *request.Request, output *CreateResolverOutput) {
- op := &request.Operation{
- Name: opCreateResolver,
- HTTPMethod: "POST",
- HTTPPath: "/v1/apis/{apiId}/types/{typeName}/resolvers",
- }
- if input == nil {
- input = &CreateResolverInput{}
- }
- output = &CreateResolverOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateResolver API operation for AWS AppSync.
- //
- // Creates a Resolver object.
- //
- // A resolver converts incoming requests into a format that a data source can
- // understand and converts the data source's responses into GraphQL.
- //
- // 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 AWS AppSync's
- // API operation CreateResolver for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
- // Another modification is in progress at this time and it must complete before
- // you can make your change.
- //
- // * ErrCodeNotFoundException "NotFoundException"
- // The resource specified in the request was not found. Check the resource,
- // and then try again.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An internal AWS AppSync error occurred. Try your request again.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateResolver
- func (c *AppSync) CreateResolver(input *CreateResolverInput) (*CreateResolverOutput, error) {
- req, out := c.CreateResolverRequest(input)
- return out, req.Send()
- }
- // CreateResolverWithContext is the same as CreateResolver with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateResolver for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppSync) CreateResolverWithContext(ctx aws.Context, input *CreateResolverInput, opts ...request.Option) (*CreateResolverOutput, error) {
- req, out := c.CreateResolverRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateType = "CreateType"
- // CreateTypeRequest generates a "aws/request.Request" representing the
- // client's request for the CreateType operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateType for more information on using the CreateType
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreateTypeRequest method.
- // req, resp := client.CreateTypeRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateType
- func (c *AppSync) CreateTypeRequest(input *CreateTypeInput) (req *request.Request, output *CreateTypeOutput) {
- op := &request.Operation{
- Name: opCreateType,
- HTTPMethod: "POST",
- HTTPPath: "/v1/apis/{apiId}/types",
- }
- if input == nil {
- input = &CreateTypeInput{}
- }
- output = &CreateTypeOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateType API operation for AWS AppSync.
- //
- // Creates a Type object.
- //
- // 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 AWS AppSync's
- // API operation CreateType for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeBadRequestException "BadRequestException"
- // The request is not well formed. For example, a value is invalid or a required
- // field is missing. Check the field values, and then try again.
- //
- // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
- // Another modification is in progress at this time and it must complete before
- // you can make your change.
- //
- // * ErrCodeNotFoundException "NotFoundException"
- // The resource specified in the request was not found. Check the resource,
- // and then try again.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An internal AWS AppSync error occurred. Try your request again.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateType
- func (c *AppSync) CreateType(input *CreateTypeInput) (*CreateTypeOutput, error) {
- req, out := c.CreateTypeRequest(input)
- return out, req.Send()
- }
- // CreateTypeWithContext is the same as CreateType with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateType for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppSync) CreateTypeWithContext(ctx aws.Context, input *CreateTypeInput, opts ...request.Option) (*CreateTypeOutput, error) {
- req, out := c.CreateTypeRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteApiKey = "DeleteApiKey"
- // DeleteApiKeyRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteApiKey operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteApiKey for more information on using the DeleteApiKey
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // 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)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteApiKey
- func (c *AppSync) DeleteApiKeyRequest(input *DeleteApiKeyInput) (req *request.Request, output *DeleteApiKeyOutput) {
- op := &request.Operation{
- Name: opDeleteApiKey,
- HTTPMethod: "DELETE",
- HTTPPath: "/v1/apis/{apiId}/apikeys/{id}",
- }
- if input == nil {
- input = &DeleteApiKeyInput{}
- }
- output = &DeleteApiKeyOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteApiKey API operation for AWS AppSync.
- //
- // Deletes an 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 AWS AppSync's
- // API operation DeleteApiKey for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeBadRequestException "BadRequestException"
- // The request is not well formed. For example, a value is invalid or a required
- // field is missing. Check the field values, and then try again.
- //
- // * ErrCodeNotFoundException "NotFoundException"
- // The resource specified in the request was not found. Check the resource,
- // and then try again.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An internal AWS AppSync error occurred. Try your request again.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteApiKey
- func (c *AppSync) DeleteApiKey(input *DeleteApiKeyInput) (*DeleteApiKeyOutput, error) {
- req, out := c.DeleteApiKeyRequest(input)
- return out, req.Send()
- }
- // DeleteApiKeyWithContext is the same as DeleteApiKey with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteApiKey for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppSync) DeleteApiKeyWithContext(ctx aws.Context, input *DeleteApiKeyInput, opts ...request.Option) (*DeleteApiKeyOutput, error) {
- req, out := c.DeleteApiKeyRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteDataSource = "DeleteDataSource"
- // DeleteDataSourceRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteDataSource operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteDataSource for more information on using the DeleteDataSource
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteDataSourceRequest method.
- // req, resp := client.DeleteDataSourceRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteDataSource
- func (c *AppSync) DeleteDataSourceRequest(input *DeleteDataSourceInput) (req *request.Request, output *DeleteDataSourceOutput) {
- op := &request.Operation{
- Name: opDeleteDataSource,
- HTTPMethod: "DELETE",
- HTTPPath: "/v1/apis/{apiId}/datasources/{name}",
- }
- if input == nil {
- input = &DeleteDataSourceInput{}
- }
- output = &DeleteDataSourceOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteDataSource API operation for AWS AppSync.
- //
- // Deletes a DataSource object.
- //
- // 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 AWS AppSync's
- // API operation DeleteDataSource for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeBadRequestException "BadRequestException"
- // The request is not well formed. For example, a value is invalid or a required
- // field is missing. Check the field values, and then try again.
- //
- // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
- // Another modification is in progress at this time and it must complete before
- // you can make your change.
- //
- // * ErrCodeNotFoundException "NotFoundException"
- // The resource specified in the request was not found. Check the resource,
- // and then try again.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An internal AWS AppSync error occurred. Try your request again.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteDataSource
- func (c *AppSync) DeleteDataSource(input *DeleteDataSourceInput) (*DeleteDataSourceOutput, error) {
- req, out := c.DeleteDataSourceRequest(input)
- return out, req.Send()
- }
- // DeleteDataSourceWithContext is the same as DeleteDataSource with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteDataSource for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppSync) DeleteDataSourceWithContext(ctx aws.Context, input *DeleteDataSourceInput, opts ...request.Option) (*DeleteDataSourceOutput, error) {
- req, out := c.DeleteDataSourceRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteFunction = "DeleteFunction"
- // DeleteFunctionRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteFunction operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteFunction for more information on using the DeleteFunction
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteFunctionRequest method.
- // req, resp := client.DeleteFunctionRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteFunction
- func (c *AppSync) DeleteFunctionRequest(input *DeleteFunctionInput) (req *request.Request, output *DeleteFunctionOutput) {
- op := &request.Operation{
- Name: opDeleteFunction,
- HTTPMethod: "DELETE",
- HTTPPath: "/v1/apis/{apiId}/functions/{functionId}",
- }
- if input == nil {
- input = &DeleteFunctionInput{}
- }
- output = &DeleteFunctionOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteFunction API operation for AWS AppSync.
- //
- // Deletes a Function.
- //
- // 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 AWS AppSync's
- // API operation DeleteFunction for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
- // Another modification is in progress at this time and it must complete before
- // you can make your change.
- //
- // * ErrCodeNotFoundException "NotFoundException"
- // The resource specified in the request was not found. Check the resource,
- // and then try again.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An internal AWS AppSync error occurred. Try your request again.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteFunction
- func (c *AppSync) DeleteFunction(input *DeleteFunctionInput) (*DeleteFunctionOutput, error) {
- req, out := c.DeleteFunctionRequest(input)
- return out, req.Send()
- }
- // DeleteFunctionWithContext is the same as DeleteFunction with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteFunction for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppSync) DeleteFunctionWithContext(ctx aws.Context, input *DeleteFunctionInput, opts ...request.Option) (*DeleteFunctionOutput, error) {
- req, out := c.DeleteFunctionRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteGraphqlApi = "DeleteGraphqlApi"
- // DeleteGraphqlApiRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteGraphqlApi operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteGraphqlApi for more information on using the DeleteGraphqlApi
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteGraphqlApiRequest method.
- // req, resp := client.DeleteGraphqlApiRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteGraphqlApi
- func (c *AppSync) DeleteGraphqlApiRequest(input *DeleteGraphqlApiInput) (req *request.Request, output *DeleteGraphqlApiOutput) {
- op := &request.Operation{
- Name: opDeleteGraphqlApi,
- HTTPMethod: "DELETE",
- HTTPPath: "/v1/apis/{apiId}",
- }
- if input == nil {
- input = &DeleteGraphqlApiInput{}
- }
- output = &DeleteGraphqlApiOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteGraphqlApi API operation for AWS AppSync.
- //
- // Deletes a GraphqlApi object.
- //
- // 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 AWS AppSync's
- // API operation DeleteGraphqlApi for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeBadRequestException "BadRequestException"
- // The request is not well formed. For example, a value is invalid or a required
- // field is missing. Check the field values, and then try again.
- //
- // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
- // Another modification is in progress at this time and it must complete before
- // you can make your change.
- //
- // * ErrCodeNotFoundException "NotFoundException"
- // The resource specified in the request was not found. Check the resource,
- // and then try again.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An internal AWS AppSync error occurred. Try your request again.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteGraphqlApi
- func (c *AppSync) DeleteGraphqlApi(input *DeleteGraphqlApiInput) (*DeleteGraphqlApiOutput, error) {
- req, out := c.DeleteGraphqlApiRequest(input)
- return out, req.Send()
- }
- // DeleteGraphqlApiWithContext is the same as DeleteGraphqlApi with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteGraphqlApi for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppSync) DeleteGraphqlApiWithContext(ctx aws.Context, input *DeleteGraphqlApiInput, opts ...request.Option) (*DeleteGraphqlApiOutput, error) {
- req, out := c.DeleteGraphqlApiRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteResolver = "DeleteResolver"
- // DeleteResolverRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteResolver operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteResolver for more information on using the DeleteResolver
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteResolverRequest method.
- // req, resp := client.DeleteResolverRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteResolver
- func (c *AppSync) DeleteResolverRequest(input *DeleteResolverInput) (req *request.Request, output *DeleteResolverOutput) {
- op := &request.Operation{
- Name: opDeleteResolver,
- HTTPMethod: "DELETE",
- HTTPPath: "/v1/apis/{apiId}/types/{typeName}/resolvers/{fieldName}",
- }
- if input == nil {
- input = &DeleteResolverInput{}
- }
- output = &DeleteResolverOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteResolver API operation for AWS AppSync.
- //
- // Deletes a Resolver object.
- //
- // 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 AWS AppSync's
- // API operation DeleteResolver for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
- // Another modification is in progress at this time and it must complete before
- // you can make your change.
- //
- // * ErrCodeNotFoundException "NotFoundException"
- // The resource specified in the request was not found. Check the resource,
- // and then try again.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An internal AWS AppSync error occurred. Try your request again.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteResolver
- func (c *AppSync) DeleteResolver(input *DeleteResolverInput) (*DeleteResolverOutput, error) {
- req, out := c.DeleteResolverRequest(input)
- return out, req.Send()
- }
- // DeleteResolverWithContext is the same as DeleteResolver with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteResolver for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppSync) DeleteResolverWithContext(ctx aws.Context, input *DeleteResolverInput, opts ...request.Option) (*DeleteResolverOutput, error) {
- req, out := c.DeleteResolverRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteType = "DeleteType"
- // DeleteTypeRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteType operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteType for more information on using the DeleteType
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteTypeRequest method.
- // req, resp := client.DeleteTypeRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteType
- func (c *AppSync) DeleteTypeRequest(input *DeleteTypeInput) (req *request.Request, output *DeleteTypeOutput) {
- op := &request.Operation{
- Name: opDeleteType,
- HTTPMethod: "DELETE",
- HTTPPath: "/v1/apis/{apiId}/types/{typeName}",
- }
- if input == nil {
- input = &DeleteTypeInput{}
- }
- output = &DeleteTypeOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteType API operation for AWS AppSync.
- //
- // Deletes a Type object.
- //
- // 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 AWS AppSync's
- // API operation DeleteType for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeBadRequestException "BadRequestException"
- // The request is not well formed. For example, a value is invalid or a required
- // field is missing. Check the field values, and then try again.
- //
- // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
- // Another modification is in progress at this time and it must complete before
- // you can make your change.
- //
- // * ErrCodeNotFoundException "NotFoundException"
- // The resource specified in the request was not found. Check the resource,
- // and then try again.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An internal AWS AppSync error occurred. Try your request again.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteType
- func (c *AppSync) DeleteType(input *DeleteTypeInput) (*DeleteTypeOutput, error) {
- req, out := c.DeleteTypeRequest(input)
- return out, req.Send()
- }
- // DeleteTypeWithContext is the same as DeleteType with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteType for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppSync) DeleteTypeWithContext(ctx aws.Context, input *DeleteTypeInput, opts ...request.Option) (*DeleteTypeOutput, error) {
- req, out := c.DeleteTypeRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opGetDataSource = "GetDataSource"
- // GetDataSourceRequest generates a "aws/request.Request" representing the
- // client's request for the GetDataSource operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See GetDataSource for more information on using the GetDataSource
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the GetDataSourceRequest method.
- // req, resp := client.GetDataSourceRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetDataSource
- func (c *AppSync) GetDataSourceRequest(input *GetDataSourceInput) (req *request.Request, output *GetDataSourceOutput) {
- op := &request.Operation{
- Name: opGetDataSource,
- HTTPMethod: "GET",
- HTTPPath: "/v1/apis/{apiId}/datasources/{name}",
- }
- if input == nil {
- input = &GetDataSourceInput{}
- }
- output = &GetDataSourceOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetDataSource API operation for AWS AppSync.
- //
- // Retrieves a DataSource object.
- //
- // 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 AWS AppSync's
- // API operation GetDataSource for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeBadRequestException "BadRequestException"
- // The request is not well formed. For example, a value is invalid or a required
- // field is missing. Check the field values, and then try again.
- //
- // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
- // Another modification is in progress at this time and it must complete before
- // you can make your change.
- //
- // * ErrCodeNotFoundException "NotFoundException"
- // The resource specified in the request was not found. Check the resource,
- // and then try again.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An internal AWS AppSync error occurred. Try your request again.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetDataSource
- func (c *AppSync) GetDataSource(input *GetDataSourceInput) (*GetDataSourceOutput, error) {
- req, out := c.GetDataSourceRequest(input)
- return out, req.Send()
- }
- // GetDataSourceWithContext is the same as GetDataSource with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetDataSource for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppSync) GetDataSourceWithContext(ctx aws.Context, input *GetDataSourceInput, opts ...request.Option) (*GetDataSourceOutput, error) {
- req, out := c.GetDataSourceRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opGetFunction = "GetFunction"
- // GetFunctionRequest generates a "aws/request.Request" representing the
- // client's request for the GetFunction operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See GetFunction for more information on using the GetFunction
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the GetFunctionRequest method.
- // req, resp := client.GetFunctionRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetFunction
- func (c *AppSync) GetFunctionRequest(input *GetFunctionInput) (req *request.Request, output *GetFunctionOutput) {
- op := &request.Operation{
- Name: opGetFunction,
- HTTPMethod: "GET",
- HTTPPath: "/v1/apis/{apiId}/functions/{functionId}",
- }
- if input == nil {
- input = &GetFunctionInput{}
- }
- output = &GetFunctionOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetFunction API operation for AWS AppSync.
- //
- // Get a Function.
- //
- // 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 AWS AppSync's
- // API operation GetFunction for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
- // Another modification is in progress at this time and it must complete before
- // you can make your change.
- //
- // * ErrCodeNotFoundException "NotFoundException"
- // The resource specified in the request was not found. Check the resource,
- // and then try again.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetFunction
- func (c *AppSync) GetFunction(input *GetFunctionInput) (*GetFunctionOutput, error) {
- req, out := c.GetFunctionRequest(input)
- return out, req.Send()
- }
- // GetFunctionWithContext is the same as GetFunction with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetFunction for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppSync) GetFunctionWithContext(ctx aws.Context, input *GetFunctionInput, opts ...request.Option) (*GetFunctionOutput, error) {
- req, out := c.GetFunctionRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opGetGraphqlApi = "GetGraphqlApi"
- // GetGraphqlApiRequest generates a "aws/request.Request" representing the
- // client's request for the GetGraphqlApi operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See GetGraphqlApi for more information on using the GetGraphqlApi
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the GetGraphqlApiRequest method.
- // req, resp := client.GetGraphqlApiRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetGraphqlApi
- func (c *AppSync) GetGraphqlApiRequest(input *GetGraphqlApiInput) (req *request.Request, output *GetGraphqlApiOutput) {
- op := &request.Operation{
- Name: opGetGraphqlApi,
- HTTPMethod: "GET",
- HTTPPath: "/v1/apis/{apiId}",
- }
- if input == nil {
- input = &GetGraphqlApiInput{}
- }
- output = &GetGraphqlApiOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetGraphqlApi API operation for AWS AppSync.
- //
- // Retrieves a GraphqlApi object.
- //
- // 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 AWS AppSync's
- // API operation GetGraphqlApi for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeBadRequestException "BadRequestException"
- // The request is not well formed. For example, a value is invalid or a required
- // field is missing. Check the field values, and then try again.
- //
- // * ErrCodeNotFoundException "NotFoundException"
- // The resource specified in the request was not found. Check the resource,
- // and then try again.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An internal AWS AppSync error occurred. Try your request again.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetGraphqlApi
- func (c *AppSync) GetGraphqlApi(input *GetGraphqlApiInput) (*GetGraphqlApiOutput, error) {
- req, out := c.GetGraphqlApiRequest(input)
- return out, req.Send()
- }
- // GetGraphqlApiWithContext is the same as GetGraphqlApi with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetGraphqlApi for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppSync) GetGraphqlApiWithContext(ctx aws.Context, input *GetGraphqlApiInput, opts ...request.Option) (*GetGraphqlApiOutput, error) {
- req, out := c.GetGraphqlApiRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opGetIntrospectionSchema = "GetIntrospectionSchema"
- // GetIntrospectionSchemaRequest generates a "aws/request.Request" representing the
- // client's request for the GetIntrospectionSchema operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See GetIntrospectionSchema for more information on using the GetIntrospectionSchema
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the GetIntrospectionSchemaRequest method.
- // req, resp := client.GetIntrospectionSchemaRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetIntrospectionSchema
- func (c *AppSync) GetIntrospectionSchemaRequest(input *GetIntrospectionSchemaInput) (req *request.Request, output *GetIntrospectionSchemaOutput) {
- op := &request.Operation{
- Name: opGetIntrospectionSchema,
- HTTPMethod: "GET",
- HTTPPath: "/v1/apis/{apiId}/schema",
- }
- if input == nil {
- input = &GetIntrospectionSchemaInput{}
- }
- output = &GetIntrospectionSchemaOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetIntrospectionSchema API operation for AWS AppSync.
- //
- // Retrieves the introspection schema for a GraphQL 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 AWS AppSync's
- // API operation GetIntrospectionSchema for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeGraphQLSchemaException "GraphQLSchemaException"
- // The GraphQL schema is not valid.
- //
- // * ErrCodeNotFoundException "NotFoundException"
- // The resource specified in the request was not found. Check the resource,
- // and then try again.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An internal AWS AppSync error occurred. Try your request again.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetIntrospectionSchema
- func (c *AppSync) GetIntrospectionSchema(input *GetIntrospectionSchemaInput) (*GetIntrospectionSchemaOutput, error) {
- req, out := c.GetIntrospectionSchemaRequest(input)
- return out, req.Send()
- }
- // GetIntrospectionSchemaWithContext is the same as GetIntrospectionSchema with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetIntrospectionSchema for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppSync) GetIntrospectionSchemaWithContext(ctx aws.Context, input *GetIntrospectionSchemaInput, opts ...request.Option) (*GetIntrospectionSchemaOutput, error) {
- req, out := c.GetIntrospectionSchemaRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opGetResolver = "GetResolver"
- // GetResolverRequest generates a "aws/request.Request" representing the
- // client's request for the GetResolver operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See GetResolver for more information on using the GetResolver
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the GetResolverRequest method.
- // req, resp := client.GetResolverRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetResolver
- func (c *AppSync) GetResolverRequest(input *GetResolverInput) (req *request.Request, output *GetResolverOutput) {
- op := &request.Operation{
- Name: opGetResolver,
- HTTPMethod: "GET",
- HTTPPath: "/v1/apis/{apiId}/types/{typeName}/resolvers/{fieldName}",
- }
- if input == nil {
- input = &GetResolverInput{}
- }
- output = &GetResolverOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetResolver API operation for AWS AppSync.
- //
- // Retrieves a Resolver object.
- //
- // 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 AWS AppSync's
- // API operation GetResolver for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
- // Another modification is in progress at this time and it must complete before
- // you can make your change.
- //
- // * ErrCodeNotFoundException "NotFoundException"
- // The resource specified in the request was not found. Check the resource,
- // and then try again.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetResolver
- func (c *AppSync) GetResolver(input *GetResolverInput) (*GetResolverOutput, error) {
- req, out := c.GetResolverRequest(input)
- return out, req.Send()
- }
- // GetResolverWithContext is the same as GetResolver with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetResolver for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppSync) GetResolverWithContext(ctx aws.Context, input *GetResolverInput, opts ...request.Option) (*GetResolverOutput, error) {
- req, out := c.GetResolverRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opGetSchemaCreationStatus = "GetSchemaCreationStatus"
- // GetSchemaCreationStatusRequest generates a "aws/request.Request" representing the
- // client's request for the GetSchemaCreationStatus operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See GetSchemaCreationStatus for more information on using the GetSchemaCreationStatus
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the GetSchemaCreationStatusRequest method.
- // req, resp := client.GetSchemaCreationStatusRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetSchemaCreationStatus
- func (c *AppSync) GetSchemaCreationStatusRequest(input *GetSchemaCreationStatusInput) (req *request.Request, output *GetSchemaCreationStatusOutput) {
- op := &request.Operation{
- Name: opGetSchemaCreationStatus,
- HTTPMethod: "GET",
- HTTPPath: "/v1/apis/{apiId}/schemacreation",
- }
- if input == nil {
- input = &GetSchemaCreationStatusInput{}
- }
- output = &GetSchemaCreationStatusOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetSchemaCreationStatus API operation for AWS AppSync.
- //
- // Retrieves the current status of a schema creation operation.
- //
- // 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 AWS AppSync's
- // API operation GetSchemaCreationStatus for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeBadRequestException "BadRequestException"
- // The request is not well formed. For example, a value is invalid or a required
- // field is missing. Check the field values, and then try again.
- //
- // * ErrCodeNotFoundException "NotFoundException"
- // The resource specified in the request was not found. Check the resource,
- // and then try again.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An internal AWS AppSync error occurred. Try your request again.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetSchemaCreationStatus
- func (c *AppSync) GetSchemaCreationStatus(input *GetSchemaCreationStatusInput) (*GetSchemaCreationStatusOutput, error) {
- req, out := c.GetSchemaCreationStatusRequest(input)
- return out, req.Send()
- }
- // GetSchemaCreationStatusWithContext is the same as GetSchemaCreationStatus with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetSchemaCreationStatus for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppSync) GetSchemaCreationStatusWithContext(ctx aws.Context, input *GetSchemaCreationStatusInput, opts ...request.Option) (*GetSchemaCreationStatusOutput, error) {
- req, out := c.GetSchemaCreationStatusRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opGetType = "GetType"
- // GetTypeRequest generates a "aws/request.Request" representing the
- // client's request for the GetType operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See GetType for more information on using the GetType
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the GetTypeRequest method.
- // req, resp := client.GetTypeRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetType
- func (c *AppSync) GetTypeRequest(input *GetTypeInput) (req *request.Request, output *GetTypeOutput) {
- op := &request.Operation{
- Name: opGetType,
- HTTPMethod: "GET",
- HTTPPath: "/v1/apis/{apiId}/types/{typeName}",
- }
- if input == nil {
- input = &GetTypeInput{}
- }
- output = &GetTypeOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetType API operation for AWS AppSync.
- //
- // Retrieves a Type object.
- //
- // 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 AWS AppSync's
- // API operation GetType for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeBadRequestException "BadRequestException"
- // The request is not well formed. For example, a value is invalid or a required
- // field is missing. Check the field values, and then try again.
- //
- // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
- // Another modification is in progress at this time and it must complete before
- // you can make your change.
- //
- // * ErrCodeNotFoundException "NotFoundException"
- // The resource specified in the request was not found. Check the resource,
- // and then try again.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An internal AWS AppSync error occurred. Try your request again.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetType
- func (c *AppSync) GetType(input *GetTypeInput) (*GetTypeOutput, error) {
- req, out := c.GetTypeRequest(input)
- return out, req.Send()
- }
- // GetTypeWithContext is the same as GetType with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetType for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppSync) GetTypeWithContext(ctx aws.Context, input *GetTypeInput, opts ...request.Option) (*GetTypeOutput, error) {
- req, out := c.GetTypeRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListApiKeys = "ListApiKeys"
- // ListApiKeysRequest generates a "aws/request.Request" representing the
- // client's request for the ListApiKeys operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ListApiKeys for more information on using the ListApiKeys
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ListApiKeysRequest method.
- // req, resp := client.ListApiKeysRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListApiKeys
- func (c *AppSync) ListApiKeysRequest(input *ListApiKeysInput) (req *request.Request, output *ListApiKeysOutput) {
- op := &request.Operation{
- Name: opListApiKeys,
- HTTPMethod: "GET",
- HTTPPath: "/v1/apis/{apiId}/apikeys",
- }
- if input == nil {
- input = &ListApiKeysInput{}
- }
- output = &ListApiKeysOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListApiKeys API operation for AWS AppSync.
- //
- // Lists the API keys for a given API.
- //
- // API keys are deleted automatically sometime after they expire. However, they
- // may still be included in the response until they have actually been deleted.
- // You can safely call DeleteApiKey to manually delete a key before it's automatically
- // deleted.
- //
- // 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 AWS AppSync's
- // API operation ListApiKeys for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeBadRequestException "BadRequestException"
- // The request is not well formed. For example, a value is invalid or a required
- // field is missing. Check the field values, and then try again.
- //
- // * ErrCodeNotFoundException "NotFoundException"
- // The resource specified in the request was not found. Check the resource,
- // and then try again.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An internal AWS AppSync error occurred. Try your request again.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListApiKeys
- func (c *AppSync) ListApiKeys(input *ListApiKeysInput) (*ListApiKeysOutput, error) {
- req, out := c.ListApiKeysRequest(input)
- return out, req.Send()
- }
- // ListApiKeysWithContext is the same as ListApiKeys with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListApiKeys for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppSync) ListApiKeysWithContext(ctx aws.Context, input *ListApiKeysInput, opts ...request.Option) (*ListApiKeysOutput, error) {
- req, out := c.ListApiKeysRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListDataSources = "ListDataSources"
- // ListDataSourcesRequest generates a "aws/request.Request" representing the
- // client's request for the ListDataSources operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ListDataSources for more information on using the ListDataSources
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ListDataSourcesRequest method.
- // req, resp := client.ListDataSourcesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListDataSources
- func (c *AppSync) ListDataSourcesRequest(input *ListDataSourcesInput) (req *request.Request, output *ListDataSourcesOutput) {
- op := &request.Operation{
- Name: opListDataSources,
- HTTPMethod: "GET",
- HTTPPath: "/v1/apis/{apiId}/datasources",
- }
- if input == nil {
- input = &ListDataSourcesInput{}
- }
- output = &ListDataSourcesOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListDataSources API operation for AWS AppSync.
- //
- // Lists the data sources for a given 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 AWS AppSync's
- // API operation ListDataSources for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeBadRequestException "BadRequestException"
- // The request is not well formed. For example, a value is invalid or a required
- // field is missing. Check the field values, and then try again.
- //
- // * ErrCodeNotFoundException "NotFoundException"
- // The resource specified in the request was not found. Check the resource,
- // and then try again.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An internal AWS AppSync error occurred. Try your request again.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListDataSources
- func (c *AppSync) ListDataSources(input *ListDataSourcesInput) (*ListDataSourcesOutput, error) {
- req, out := c.ListDataSourcesRequest(input)
- return out, req.Send()
- }
- // ListDataSourcesWithContext is the same as ListDataSources with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListDataSources for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppSync) ListDataSourcesWithContext(ctx aws.Context, input *ListDataSourcesInput, opts ...request.Option) (*ListDataSourcesOutput, error) {
- req, out := c.ListDataSourcesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListFunctions = "ListFunctions"
- // ListFunctionsRequest generates a "aws/request.Request" representing the
- // client's request for the ListFunctions operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ListFunctions for more information on using the ListFunctions
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ListFunctionsRequest method.
- // req, resp := client.ListFunctionsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListFunctions
- func (c *AppSync) ListFunctionsRequest(input *ListFunctionsInput) (req *request.Request, output *ListFunctionsOutput) {
- op := &request.Operation{
- Name: opListFunctions,
- HTTPMethod: "GET",
- HTTPPath: "/v1/apis/{apiId}/functions",
- }
- if input == nil {
- input = &ListFunctionsInput{}
- }
- output = &ListFunctionsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListFunctions API operation for AWS AppSync.
- //
- // List multiple functions.
- //
- // 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 AWS AppSync's
- // API operation ListFunctions for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeBadRequestException "BadRequestException"
- // The request is not well formed. For example, a value is invalid or a required
- // field is missing. Check the field values, and then try again.
- //
- // * ErrCodeNotFoundException "NotFoundException"
- // The resource specified in the request was not found. Check the resource,
- // and then try again.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An internal AWS AppSync error occurred. Try your request again.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListFunctions
- func (c *AppSync) ListFunctions(input *ListFunctionsInput) (*ListFunctionsOutput, error) {
- req, out := c.ListFunctionsRequest(input)
- return out, req.Send()
- }
- // ListFunctionsWithContext is the same as ListFunctions with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListFunctions for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppSync) ListFunctionsWithContext(ctx aws.Context, input *ListFunctionsInput, opts ...request.Option) (*ListFunctionsOutput, error) {
- req, out := c.ListFunctionsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListGraphqlApis = "ListGraphqlApis"
- // ListGraphqlApisRequest generates a "aws/request.Request" representing the
- // client's request for the ListGraphqlApis operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ListGraphqlApis for more information on using the ListGraphqlApis
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ListGraphqlApisRequest method.
- // req, resp := client.ListGraphqlApisRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListGraphqlApis
- func (c *AppSync) ListGraphqlApisRequest(input *ListGraphqlApisInput) (req *request.Request, output *ListGraphqlApisOutput) {
- op := &request.Operation{
- Name: opListGraphqlApis,
- HTTPMethod: "GET",
- HTTPPath: "/v1/apis",
- }
- if input == nil {
- input = &ListGraphqlApisInput{}
- }
- output = &ListGraphqlApisOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListGraphqlApis API operation for AWS AppSync.
- //
- // Lists your GraphQL APIs.
- //
- // 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 AWS AppSync's
- // API operation ListGraphqlApis for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeBadRequestException "BadRequestException"
- // The request is not well formed. For example, a value is invalid or a required
- // field is missing. Check the field values, and then try again.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An internal AWS AppSync error occurred. Try your request again.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListGraphqlApis
- func (c *AppSync) ListGraphqlApis(input *ListGraphqlApisInput) (*ListGraphqlApisOutput, error) {
- req, out := c.ListGraphqlApisRequest(input)
- return out, req.Send()
- }
- // ListGraphqlApisWithContext is the same as ListGraphqlApis with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListGraphqlApis for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppSync) ListGraphqlApisWithContext(ctx aws.Context, input *ListGraphqlApisInput, opts ...request.Option) (*ListGraphqlApisOutput, error) {
- req, out := c.ListGraphqlApisRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListResolvers = "ListResolvers"
- // ListResolversRequest generates a "aws/request.Request" representing the
- // client's request for the ListResolvers operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ListResolvers for more information on using the ListResolvers
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ListResolversRequest method.
- // req, resp := client.ListResolversRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListResolvers
- func (c *AppSync) ListResolversRequest(input *ListResolversInput) (req *request.Request, output *ListResolversOutput) {
- op := &request.Operation{
- Name: opListResolvers,
- HTTPMethod: "GET",
- HTTPPath: "/v1/apis/{apiId}/types/{typeName}/resolvers",
- }
- if input == nil {
- input = &ListResolversInput{}
- }
- output = &ListResolversOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListResolvers API operation for AWS AppSync.
- //
- // Lists the resolvers for a given API and type.
- //
- // 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 AWS AppSync's
- // API operation ListResolvers for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeBadRequestException "BadRequestException"
- // The request is not well formed. For example, a value is invalid or a required
- // field is missing. Check the field values, and then try again.
- //
- // * ErrCodeNotFoundException "NotFoundException"
- // The resource specified in the request was not found. Check the resource,
- // and then try again.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An internal AWS AppSync error occurred. Try your request again.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListResolvers
- func (c *AppSync) ListResolvers(input *ListResolversInput) (*ListResolversOutput, error) {
- req, out := c.ListResolversRequest(input)
- return out, req.Send()
- }
- // ListResolversWithContext is the same as ListResolvers with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListResolvers for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppSync) ListResolversWithContext(ctx aws.Context, input *ListResolversInput, opts ...request.Option) (*ListResolversOutput, error) {
- req, out := c.ListResolversRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListResolversByFunction = "ListResolversByFunction"
- // ListResolversByFunctionRequest generates a "aws/request.Request" representing the
- // client's request for the ListResolversByFunction operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ListResolversByFunction for more information on using the ListResolversByFunction
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ListResolversByFunctionRequest method.
- // req, resp := client.ListResolversByFunctionRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListResolversByFunction
- func (c *AppSync) ListResolversByFunctionRequest(input *ListResolversByFunctionInput) (req *request.Request, output *ListResolversByFunctionOutput) {
- op := &request.Operation{
- Name: opListResolversByFunction,
- HTTPMethod: "GET",
- HTTPPath: "/v1/apis/{apiId}/functions/{functionId}/resolvers",
- }
- if input == nil {
- input = &ListResolversByFunctionInput{}
- }
- output = &ListResolversByFunctionOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListResolversByFunction API operation for AWS AppSync.
- //
- // List the resolvers that are associated with a specific function.
- //
- // 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 AWS AppSync's
- // API operation ListResolversByFunction for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeBadRequestException "BadRequestException"
- // The request is not well formed. For example, a value is invalid or a required
- // field is missing. Check the field values, and then try again.
- //
- // * ErrCodeNotFoundException "NotFoundException"
- // The resource specified in the request was not found. Check the resource,
- // and then try again.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An internal AWS AppSync error occurred. Try your request again.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListResolversByFunction
- func (c *AppSync) ListResolversByFunction(input *ListResolversByFunctionInput) (*ListResolversByFunctionOutput, error) {
- req, out := c.ListResolversByFunctionRequest(input)
- return out, req.Send()
- }
- // ListResolversByFunctionWithContext is the same as ListResolversByFunction with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListResolversByFunction for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppSync) ListResolversByFunctionWithContext(ctx aws.Context, input *ListResolversByFunctionInput, opts ...request.Option) (*ListResolversByFunctionOutput, error) {
- req, out := c.ListResolversByFunctionRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListTypes = "ListTypes"
- // ListTypesRequest generates a "aws/request.Request" representing the
- // client's request for the ListTypes operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ListTypes for more information on using the ListTypes
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ListTypesRequest method.
- // req, resp := client.ListTypesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListTypes
- func (c *AppSync) ListTypesRequest(input *ListTypesInput) (req *request.Request, output *ListTypesOutput) {
- op := &request.Operation{
- Name: opListTypes,
- HTTPMethod: "GET",
- HTTPPath: "/v1/apis/{apiId}/types",
- }
- if input == nil {
- input = &ListTypesInput{}
- }
- output = &ListTypesOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListTypes API operation for AWS AppSync.
- //
- // Lists the types for a given 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 AWS AppSync's
- // API operation ListTypes for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeBadRequestException "BadRequestException"
- // The request is not well formed. For example, a value is invalid or a required
- // field is missing. Check the field values, and then try again.
- //
- // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
- // Another modification is in progress at this time and it must complete before
- // you can make your change.
- //
- // * ErrCodeNotFoundException "NotFoundException"
- // The resource specified in the request was not found. Check the resource,
- // and then try again.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An internal AWS AppSync error occurred. Try your request again.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListTypes
- func (c *AppSync) ListTypes(input *ListTypesInput) (*ListTypesOutput, error) {
- req, out := c.ListTypesRequest(input)
- return out, req.Send()
- }
- // ListTypesWithContext is the same as ListTypes with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListTypes for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppSync) ListTypesWithContext(ctx aws.Context, input *ListTypesInput, opts ...request.Option) (*ListTypesOutput, error) {
- req, out := c.ListTypesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opStartSchemaCreation = "StartSchemaCreation"
- // StartSchemaCreationRequest generates a "aws/request.Request" representing the
- // client's request for the StartSchemaCreation operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See StartSchemaCreation for more information on using the StartSchemaCreation
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the StartSchemaCreationRequest method.
- // req, resp := client.StartSchemaCreationRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/StartSchemaCreation
- func (c *AppSync) StartSchemaCreationRequest(input *StartSchemaCreationInput) (req *request.Request, output *StartSchemaCreationOutput) {
- op := &request.Operation{
- Name: opStartSchemaCreation,
- HTTPMethod: "POST",
- HTTPPath: "/v1/apis/{apiId}/schemacreation",
- }
- if input == nil {
- input = &StartSchemaCreationInput{}
- }
- output = &StartSchemaCreationOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // StartSchemaCreation API operation for AWS AppSync.
- //
- // Adds a new schema to your GraphQL API.
- //
- // This operation is asynchronous. Use to determine when it has completed.
- //
- // 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 AWS AppSync's
- // API operation StartSchemaCreation for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeBadRequestException "BadRequestException"
- // The request is not well formed. For example, a value is invalid or a required
- // field is missing. Check the field values, and then try again.
- //
- // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
- // Another modification is in progress at this time and it must complete before
- // you can make your change.
- //
- // * ErrCodeNotFoundException "NotFoundException"
- // The resource specified in the request was not found. Check the resource,
- // and then try again.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An internal AWS AppSync error occurred. Try your request again.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/StartSchemaCreation
- func (c *AppSync) StartSchemaCreation(input *StartSchemaCreationInput) (*StartSchemaCreationOutput, error) {
- req, out := c.StartSchemaCreationRequest(input)
- return out, req.Send()
- }
- // StartSchemaCreationWithContext is the same as StartSchemaCreation with the addition of
- // the ability to pass a context and additional request options.
- //
- // See StartSchemaCreation for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppSync) StartSchemaCreationWithContext(ctx aws.Context, input *StartSchemaCreationInput, opts ...request.Option) (*StartSchemaCreationOutput, error) {
- req, out := c.StartSchemaCreationRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUpdateApiKey = "UpdateApiKey"
- // UpdateApiKeyRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateApiKey operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See UpdateApiKey for more information on using the UpdateApiKey
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // 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)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateApiKey
- func (c *AppSync) UpdateApiKeyRequest(input *UpdateApiKeyInput) (req *request.Request, output *UpdateApiKeyOutput) {
- op := &request.Operation{
- Name: opUpdateApiKey,
- HTTPMethod: "POST",
- HTTPPath: "/v1/apis/{apiId}/apikeys/{id}",
- }
- if input == nil {
- input = &UpdateApiKeyInput{}
- }
- output = &UpdateApiKeyOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // UpdateApiKey API operation for AWS AppSync.
- //
- // Updates an 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 AWS AppSync's
- // API operation UpdateApiKey for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeBadRequestException "BadRequestException"
- // The request is not well formed. For example, a value is invalid or a required
- // field is missing. Check the field values, and then try again.
- //
- // * ErrCodeNotFoundException "NotFoundException"
- // The resource specified in the request was not found. Check the resource,
- // and then try again.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeLimitExceededException "LimitExceededException"
- // The request exceeded a limit. Try your request again.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An internal AWS AppSync error occurred. Try your request again.
- //
- // * ErrCodeApiKeyValidityOutOfBoundsException "ApiKeyValidityOutOfBoundsException"
- // The API key expiration must be set to a value between 1 and 365 days from
- // creation (for CreateApiKey) or from update (for UpdateApiKey).
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateApiKey
- func (c *AppSync) UpdateApiKey(input *UpdateApiKeyInput) (*UpdateApiKeyOutput, error) {
- req, out := c.UpdateApiKeyRequest(input)
- return out, req.Send()
- }
- // UpdateApiKeyWithContext is the same as UpdateApiKey with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdateApiKey for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppSync) UpdateApiKeyWithContext(ctx aws.Context, input *UpdateApiKeyInput, opts ...request.Option) (*UpdateApiKeyOutput, error) {
- req, out := c.UpdateApiKeyRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUpdateDataSource = "UpdateDataSource"
- // UpdateDataSourceRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateDataSource operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See UpdateDataSource for more information on using the UpdateDataSource
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the UpdateDataSourceRequest method.
- // req, resp := client.UpdateDataSourceRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateDataSource
- func (c *AppSync) UpdateDataSourceRequest(input *UpdateDataSourceInput) (req *request.Request, output *UpdateDataSourceOutput) {
- op := &request.Operation{
- Name: opUpdateDataSource,
- HTTPMethod: "POST",
- HTTPPath: "/v1/apis/{apiId}/datasources/{name}",
- }
- if input == nil {
- input = &UpdateDataSourceInput{}
- }
- output = &UpdateDataSourceOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // UpdateDataSource API operation for AWS AppSync.
- //
- // Updates a DataSource object.
- //
- // 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 AWS AppSync's
- // API operation UpdateDataSource for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeBadRequestException "BadRequestException"
- // The request is not well formed. For example, a value is invalid or a required
- // field is missing. Check the field values, and then try again.
- //
- // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
- // Another modification is in progress at this time and it must complete before
- // you can make your change.
- //
- // * ErrCodeNotFoundException "NotFoundException"
- // The resource specified in the request was not found. Check the resource,
- // and then try again.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An internal AWS AppSync error occurred. Try your request again.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateDataSource
- func (c *AppSync) UpdateDataSource(input *UpdateDataSourceInput) (*UpdateDataSourceOutput, error) {
- req, out := c.UpdateDataSourceRequest(input)
- return out, req.Send()
- }
- // UpdateDataSourceWithContext is the same as UpdateDataSource with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdateDataSource for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppSync) UpdateDataSourceWithContext(ctx aws.Context, input *UpdateDataSourceInput, opts ...request.Option) (*UpdateDataSourceOutput, error) {
- req, out := c.UpdateDataSourceRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUpdateFunction = "UpdateFunction"
- // UpdateFunctionRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateFunction operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See UpdateFunction for more information on using the UpdateFunction
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the UpdateFunctionRequest method.
- // req, resp := client.UpdateFunctionRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateFunction
- func (c *AppSync) UpdateFunctionRequest(input *UpdateFunctionInput) (req *request.Request, output *UpdateFunctionOutput) {
- op := &request.Operation{
- Name: opUpdateFunction,
- HTTPMethod: "POST",
- HTTPPath: "/v1/apis/{apiId}/functions/{functionId}",
- }
- if input == nil {
- input = &UpdateFunctionInput{}
- }
- output = &UpdateFunctionOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // UpdateFunction API operation for AWS AppSync.
- //
- // Updates a Function object.
- //
- // 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 AWS AppSync's
- // API operation UpdateFunction for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
- // Another modification is in progress at this time and it must complete before
- // you can make your change.
- //
- // * ErrCodeNotFoundException "NotFoundException"
- // The resource specified in the request was not found. Check the resource,
- // and then try again.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An internal AWS AppSync error occurred. Try your request again.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateFunction
- func (c *AppSync) UpdateFunction(input *UpdateFunctionInput) (*UpdateFunctionOutput, error) {
- req, out := c.UpdateFunctionRequest(input)
- return out, req.Send()
- }
- // UpdateFunctionWithContext is the same as UpdateFunction with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdateFunction for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppSync) UpdateFunctionWithContext(ctx aws.Context, input *UpdateFunctionInput, opts ...request.Option) (*UpdateFunctionOutput, error) {
- req, out := c.UpdateFunctionRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUpdateGraphqlApi = "UpdateGraphqlApi"
- // UpdateGraphqlApiRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateGraphqlApi operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See UpdateGraphqlApi for more information on using the UpdateGraphqlApi
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the UpdateGraphqlApiRequest method.
- // req, resp := client.UpdateGraphqlApiRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateGraphqlApi
- func (c *AppSync) UpdateGraphqlApiRequest(input *UpdateGraphqlApiInput) (req *request.Request, output *UpdateGraphqlApiOutput) {
- op := &request.Operation{
- Name: opUpdateGraphqlApi,
- HTTPMethod: "POST",
- HTTPPath: "/v1/apis/{apiId}",
- }
- if input == nil {
- input = &UpdateGraphqlApiInput{}
- }
- output = &UpdateGraphqlApiOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // UpdateGraphqlApi API operation for AWS AppSync.
- //
- // Updates a GraphqlApi object.
- //
- // 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 AWS AppSync's
- // API operation UpdateGraphqlApi for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeBadRequestException "BadRequestException"
- // The request is not well formed. For example, a value is invalid or a required
- // field is missing. Check the field values, and then try again.
- //
- // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
- // Another modification is in progress at this time and it must complete before
- // you can make your change.
- //
- // * ErrCodeNotFoundException "NotFoundException"
- // The resource specified in the request was not found. Check the resource,
- // and then try again.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An internal AWS AppSync error occurred. Try your request again.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateGraphqlApi
- func (c *AppSync) UpdateGraphqlApi(input *UpdateGraphqlApiInput) (*UpdateGraphqlApiOutput, error) {
- req, out := c.UpdateGraphqlApiRequest(input)
- return out, req.Send()
- }
- // UpdateGraphqlApiWithContext is the same as UpdateGraphqlApi with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdateGraphqlApi for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppSync) UpdateGraphqlApiWithContext(ctx aws.Context, input *UpdateGraphqlApiInput, opts ...request.Option) (*UpdateGraphqlApiOutput, error) {
- req, out := c.UpdateGraphqlApiRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUpdateResolver = "UpdateResolver"
- // UpdateResolverRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateResolver operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See UpdateResolver for more information on using the UpdateResolver
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the UpdateResolverRequest method.
- // req, resp := client.UpdateResolverRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateResolver
- func (c *AppSync) UpdateResolverRequest(input *UpdateResolverInput) (req *request.Request, output *UpdateResolverOutput) {
- op := &request.Operation{
- Name: opUpdateResolver,
- HTTPMethod: "POST",
- HTTPPath: "/v1/apis/{apiId}/types/{typeName}/resolvers/{fieldName}",
- }
- if input == nil {
- input = &UpdateResolverInput{}
- }
- output = &UpdateResolverOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // UpdateResolver API operation for AWS AppSync.
- //
- // Updates a Resolver object.
- //
- // 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 AWS AppSync's
- // API operation UpdateResolver for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
- // Another modification is in progress at this time and it must complete before
- // you can make your change.
- //
- // * ErrCodeNotFoundException "NotFoundException"
- // The resource specified in the request was not found. Check the resource,
- // and then try again.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An internal AWS AppSync error occurred. Try your request again.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateResolver
- func (c *AppSync) UpdateResolver(input *UpdateResolverInput) (*UpdateResolverOutput, error) {
- req, out := c.UpdateResolverRequest(input)
- return out, req.Send()
- }
- // UpdateResolverWithContext is the same as UpdateResolver with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdateResolver for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppSync) UpdateResolverWithContext(ctx aws.Context, input *UpdateResolverInput, opts ...request.Option) (*UpdateResolverOutput, error) {
- req, out := c.UpdateResolverRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUpdateType = "UpdateType"
- // UpdateTypeRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateType operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See UpdateType for more information on using the UpdateType
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the UpdateTypeRequest method.
- // req, resp := client.UpdateTypeRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateType
- func (c *AppSync) UpdateTypeRequest(input *UpdateTypeInput) (req *request.Request, output *UpdateTypeOutput) {
- op := &request.Operation{
- Name: opUpdateType,
- HTTPMethod: "POST",
- HTTPPath: "/v1/apis/{apiId}/types/{typeName}",
- }
- if input == nil {
- input = &UpdateTypeInput{}
- }
- output = &UpdateTypeOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // UpdateType API operation for AWS AppSync.
- //
- // Updates a Type object.
- //
- // 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 AWS AppSync's
- // API operation UpdateType for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeBadRequestException "BadRequestException"
- // The request is not well formed. For example, a value is invalid or a required
- // field is missing. Check the field values, and then try again.
- //
- // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
- // Another modification is in progress at this time and it must complete before
- // you can make your change.
- //
- // * ErrCodeNotFoundException "NotFoundException"
- // The resource specified in the request was not found. Check the resource,
- // and then try again.
- //
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this operation.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // An internal AWS AppSync error occurred. Try your request again.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateType
- func (c *AppSync) UpdateType(input *UpdateTypeInput) (*UpdateTypeOutput, error) {
- req, out := c.UpdateTypeRequest(input)
- return out, req.Send()
- }
- // UpdateTypeWithContext is the same as UpdateType with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdateType for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppSync) UpdateTypeWithContext(ctx aws.Context, input *UpdateTypeInput, opts ...request.Option) (*UpdateTypeOutput, error) {
- req, out := c.UpdateTypeRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // Describes an API key.
- //
- // Customers invoke AWS AppSync GraphQL API operations with API keys as an identity
- // mechanism. There are two key versions:
- //
- // da1: This version was introduced at launch in November 2017. These keys always
- // expire after 7 days. Key expiration is managed by Amazon DynamoDB TTL. The
- // keys ceased to be valid after February 21, 2018 and should not be used after
- // that date.
- //
- // * ListApiKeys returns the expiration time in milliseconds.
- //
- // * CreateApiKey returns the expiration time in milliseconds.
- //
- // * UpdateApiKey is not available for this key version.
- //
- // * DeleteApiKey deletes the item from the table.
- //
- // * Expiration is stored in Amazon DynamoDB as milliseconds. This results
- // in a bug where keys are not automatically deleted because DynamoDB expects
- // the TTL to be stored in seconds. As a one-time action, we will delete
- // these keys from the table after February 21, 2018.
- //
- // da2: This version was introduced in February 2018 when AppSync added support
- // to extend key expiration.
- //
- // * ListApiKeys returns the expiration time in seconds.
- //
- // * CreateApiKey returns the expiration time in seconds and accepts a user-provided
- // expiration time in seconds.
- //
- // * UpdateApiKey returns the expiration time in seconds and accepts a user-provided
- // expiration time in seconds. Key expiration can only be updated while the
- // key has not expired.
- //
- // * DeleteApiKey deletes the item from the table.
- //
- // * Expiration is stored in Amazon DynamoDB as seconds.
- type ApiKey struct {
- _ struct{} `type:"structure"`
- // A description of the purpose of the API key.
- Description *string `locationName:"description" type:"string"`
- // The time after which the API key expires. The date is represented as seconds
- // since the epoch, rounded down to the nearest hour.
- Expires *int64 `locationName:"expires" type:"long"`
- // The API key ID.
- Id *string `locationName:"id" 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()
- }
- // SetDescription sets the Description field's value.
- func (s *ApiKey) SetDescription(v string) *ApiKey {
- s.Description = &v
- return s
- }
- // SetExpires sets the Expires field's value.
- func (s *ApiKey) SetExpires(v int64) *ApiKey {
- s.Expires = &v
- return s
- }
- // SetId sets the Id field's value.
- func (s *ApiKey) SetId(v string) *ApiKey {
- s.Id = &v
- return s
- }
- // The authorization config in case the HTTP endpoint requires authorization.
- type AuthorizationConfig struct {
- _ struct{} `type:"structure"`
- // The authorization type required by the HTTP endpoint.
- //
- // * AWS_IAM: The authorization type is Sigv4.
- //
- // AuthorizationType is a required field
- AuthorizationType *string `locationName:"authorizationType" type:"string" required:"true" enum:"AuthorizationType"`
- // The AWS IAM settings.
- AwsIamConfig *AwsIamConfig `locationName:"awsIamConfig" type:"structure"`
- }
- // String returns the string representation
- func (s AuthorizationConfig) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AuthorizationConfig) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AuthorizationConfig) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AuthorizationConfig"}
- if s.AuthorizationType == nil {
- invalidParams.Add(request.NewErrParamRequired("AuthorizationType"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAuthorizationType sets the AuthorizationType field's value.
- func (s *AuthorizationConfig) SetAuthorizationType(v string) *AuthorizationConfig {
- s.AuthorizationType = &v
- return s
- }
- // SetAwsIamConfig sets the AwsIamConfig field's value.
- func (s *AuthorizationConfig) SetAwsIamConfig(v *AwsIamConfig) *AuthorizationConfig {
- s.AwsIamConfig = v
- return s
- }
- // The AWS IAM configuration.
- type AwsIamConfig struct {
- _ struct{} `type:"structure"`
- // The signing region for AWS IAM authorization.
- SigningRegion *string `locationName:"signingRegion" type:"string"`
- // The signing service name for AWS IAM authorization.
- SigningServiceName *string `locationName:"signingServiceName" type:"string"`
- }
- // String returns the string representation
- func (s AwsIamConfig) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AwsIamConfig) GoString() string {
- return s.String()
- }
- // SetSigningRegion sets the SigningRegion field's value.
- func (s *AwsIamConfig) SetSigningRegion(v string) *AwsIamConfig {
- s.SigningRegion = &v
- return s
- }
- // SetSigningServiceName sets the SigningServiceName field's value.
- func (s *AwsIamConfig) SetSigningServiceName(v string) *AwsIamConfig {
- s.SigningServiceName = &v
- return s
- }
- type CreateApiKeyInput struct {
- _ struct{} `type:"structure"`
- // The ID for your GraphQL API.
- //
- // ApiId is a required field
- ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"`
- // A description of the purpose of the API key.
- Description *string `locationName:"description" type:"string"`
- // The time from creation time after which the API key expires. The date is
- // represented as seconds since the epoch, rounded down to the nearest hour.
- // The default value for this parameter is 7 days from creation time. For more
- // information, see .
- Expires *int64 `locationName:"expires" type:"long"`
- }
- // 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()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateApiKeyInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateApiKeyInput"}
- if s.ApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("ApiId"))
- }
- if s.ApiId != nil && len(*s.ApiId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApiId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetApiId sets the ApiId field's value.
- func (s *CreateApiKeyInput) SetApiId(v string) *CreateApiKeyInput {
- s.ApiId = &v
- return s
- }
- // SetDescription sets the Description field's value.
- func (s *CreateApiKeyInput) SetDescription(v string) *CreateApiKeyInput {
- s.Description = &v
- return s
- }
- // SetExpires sets the Expires field's value.
- func (s *CreateApiKeyInput) SetExpires(v int64) *CreateApiKeyInput {
- s.Expires = &v
- return s
- }
- type CreateApiKeyOutput struct {
- _ struct{} `type:"structure"`
- // The API key.
- ApiKey *ApiKey `locationName:"apiKey" type:"structure"`
- }
- // String returns the string representation
- func (s CreateApiKeyOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateApiKeyOutput) GoString() string {
- return s.String()
- }
- // SetApiKey sets the ApiKey field's value.
- func (s *CreateApiKeyOutput) SetApiKey(v *ApiKey) *CreateApiKeyOutput {
- s.ApiKey = v
- return s
- }
- type CreateDataSourceInput struct {
- _ struct{} `type:"structure"`
- // The API ID for the GraphQL API for the DataSource.
- //
- // ApiId is a required field
- ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"`
- // A description of the DataSource.
- Description *string `locationName:"description" type:"string"`
- // Amazon DynamoDB settings.
- DynamodbConfig *DynamodbDataSourceConfig `locationName:"dynamodbConfig" type:"structure"`
- // Amazon Elasticsearch Service settings.
- ElasticsearchConfig *ElasticsearchDataSourceConfig `locationName:"elasticsearchConfig" type:"structure"`
- // HTTP endpoint settings.
- HttpConfig *HttpDataSourceConfig `locationName:"httpConfig" type:"structure"`
- // AWS Lambda settings.
- LambdaConfig *LambdaDataSourceConfig `locationName:"lambdaConfig" type:"structure"`
- // A user-supplied name for the DataSource.
- //
- // Name is a required field
- Name *string `locationName:"name" type:"string" required:"true"`
- // Relational database settings.
- RelationalDatabaseConfig *RelationalDatabaseDataSourceConfig `locationName:"relationalDatabaseConfig" type:"structure"`
- // The AWS IAM service role ARN for the data source. The system assumes this
- // role when accessing the data source.
- ServiceRoleArn *string `locationName:"serviceRoleArn" type:"string"`
- // The type of the DataSource.
- //
- // Type is a required field
- Type *string `locationName:"type" type:"string" required:"true" enum:"DataSourceType"`
- }
- // String returns the string representation
- func (s CreateDataSourceInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateDataSourceInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateDataSourceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateDataSourceInput"}
- if s.ApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("ApiId"))
- }
- if s.ApiId != nil && len(*s.ApiId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApiId", 1))
- }
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Type == nil {
- invalidParams.Add(request.NewErrParamRequired("Type"))
- }
- if s.DynamodbConfig != nil {
- if err := s.DynamodbConfig.Validate(); err != nil {
- invalidParams.AddNested("DynamodbConfig", err.(request.ErrInvalidParams))
- }
- }
- if s.ElasticsearchConfig != nil {
- if err := s.ElasticsearchConfig.Validate(); err != nil {
- invalidParams.AddNested("ElasticsearchConfig", err.(request.ErrInvalidParams))
- }
- }
- if s.HttpConfig != nil {
- if err := s.HttpConfig.Validate(); err != nil {
- invalidParams.AddNested("HttpConfig", err.(request.ErrInvalidParams))
- }
- }
- if s.LambdaConfig != nil {
- if err := s.LambdaConfig.Validate(); err != nil {
- invalidParams.AddNested("LambdaConfig", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetApiId sets the ApiId field's value.
- func (s *CreateDataSourceInput) SetApiId(v string) *CreateDataSourceInput {
- s.ApiId = &v
- return s
- }
- // SetDescription sets the Description field's value.
- func (s *CreateDataSourceInput) SetDescription(v string) *CreateDataSourceInput {
- s.Description = &v
- return s
- }
- // SetDynamodbConfig sets the DynamodbConfig field's value.
- func (s *CreateDataSourceInput) SetDynamodbConfig(v *DynamodbDataSourceConfig) *CreateDataSourceInput {
- s.DynamodbConfig = v
- return s
- }
- // SetElasticsearchConfig sets the ElasticsearchConfig field's value.
- func (s *CreateDataSourceInput) SetElasticsearchConfig(v *ElasticsearchDataSourceConfig) *CreateDataSourceInput {
- s.ElasticsearchConfig = v
- return s
- }
- // SetHttpConfig sets the HttpConfig field's value.
- func (s *CreateDataSourceInput) SetHttpConfig(v *HttpDataSourceConfig) *CreateDataSourceInput {
- s.HttpConfig = v
- return s
- }
- // SetLambdaConfig sets the LambdaConfig field's value.
- func (s *CreateDataSourceInput) SetLambdaConfig(v *LambdaDataSourceConfig) *CreateDataSourceInput {
- s.LambdaConfig = v
- return s
- }
- // SetName sets the Name field's value.
- func (s *CreateDataSourceInput) SetName(v string) *CreateDataSourceInput {
- s.Name = &v
- return s
- }
- // SetRelationalDatabaseConfig sets the RelationalDatabaseConfig field's value.
- func (s *CreateDataSourceInput) SetRelationalDatabaseConfig(v *RelationalDatabaseDataSourceConfig) *CreateDataSourceInput {
- s.RelationalDatabaseConfig = v
- return s
- }
- // SetServiceRoleArn sets the ServiceRoleArn field's value.
- func (s *CreateDataSourceInput) SetServiceRoleArn(v string) *CreateDataSourceInput {
- s.ServiceRoleArn = &v
- return s
- }
- // SetType sets the Type field's value.
- func (s *CreateDataSourceInput) SetType(v string) *CreateDataSourceInput {
- s.Type = &v
- return s
- }
- type CreateDataSourceOutput struct {
- _ struct{} `type:"structure"`
- // The DataSource object.
- DataSource *DataSource `locationName:"dataSource" type:"structure"`
- }
- // String returns the string representation
- func (s CreateDataSourceOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateDataSourceOutput) GoString() string {
- return s.String()
- }
- // SetDataSource sets the DataSource field's value.
- func (s *CreateDataSourceOutput) SetDataSource(v *DataSource) *CreateDataSourceOutput {
- s.DataSource = v
- return s
- }
- type CreateFunctionInput struct {
- _ struct{} `type:"structure"`
- // The GraphQL API ID.
- //
- // ApiId is a required field
- ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"`
- // The FunctionDataSource name.
- //
- // DataSourceName is a required field
- DataSourceName *string `locationName:"dataSourceName" type:"string" required:"true"`
- // The Function description.
- Description *string `locationName:"description" type:"string"`
- // The version of the request mapping template. Currently the supported value
- // is 2018-05-29.
- //
- // FunctionVersion is a required field
- FunctionVersion *string `locationName:"functionVersion" type:"string" required:"true"`
- // The Function name. The function name does not have to be unique.
- //
- // Name is a required field
- Name *string `locationName:"name" type:"string" required:"true"`
- // The Function request mapping template. Functions support only the 2018-05-29
- // version of the request mapping template.
- //
- // RequestMappingTemplate is a required field
- RequestMappingTemplate *string `locationName:"requestMappingTemplate" min:"1" type:"string" required:"true"`
- // The Function response mapping template.
- ResponseMappingTemplate *string `locationName:"responseMappingTemplate" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s CreateFunctionInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateFunctionInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateFunctionInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateFunctionInput"}
- if s.ApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("ApiId"))
- }
- if s.ApiId != nil && len(*s.ApiId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApiId", 1))
- }
- if s.DataSourceName == nil {
- invalidParams.Add(request.NewErrParamRequired("DataSourceName"))
- }
- if s.FunctionVersion == nil {
- invalidParams.Add(request.NewErrParamRequired("FunctionVersion"))
- }
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.RequestMappingTemplate == nil {
- invalidParams.Add(request.NewErrParamRequired("RequestMappingTemplate"))
- }
- if s.RequestMappingTemplate != nil && len(*s.RequestMappingTemplate) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RequestMappingTemplate", 1))
- }
- if s.ResponseMappingTemplate != nil && len(*s.ResponseMappingTemplate) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ResponseMappingTemplate", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetApiId sets the ApiId field's value.
- func (s *CreateFunctionInput) SetApiId(v string) *CreateFunctionInput {
- s.ApiId = &v
- return s
- }
- // SetDataSourceName sets the DataSourceName field's value.
- func (s *CreateFunctionInput) SetDataSourceName(v string) *CreateFunctionInput {
- s.DataSourceName = &v
- return s
- }
- // SetDescription sets the Description field's value.
- func (s *CreateFunctionInput) SetDescription(v string) *CreateFunctionInput {
- s.Description = &v
- return s
- }
- // SetFunctionVersion sets the FunctionVersion field's value.
- func (s *CreateFunctionInput) SetFunctionVersion(v string) *CreateFunctionInput {
- s.FunctionVersion = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *CreateFunctionInput) SetName(v string) *CreateFunctionInput {
- s.Name = &v
- return s
- }
- // SetRequestMappingTemplate sets the RequestMappingTemplate field's value.
- func (s *CreateFunctionInput) SetRequestMappingTemplate(v string) *CreateFunctionInput {
- s.RequestMappingTemplate = &v
- return s
- }
- // SetResponseMappingTemplate sets the ResponseMappingTemplate field's value.
- func (s *CreateFunctionInput) SetResponseMappingTemplate(v string) *CreateFunctionInput {
- s.ResponseMappingTemplate = &v
- return s
- }
- type CreateFunctionOutput struct {
- _ struct{} `type:"structure"`
- // The Function object.
- FunctionConfiguration *FunctionConfiguration `locationName:"functionConfiguration" type:"structure"`
- }
- // String returns the string representation
- func (s CreateFunctionOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateFunctionOutput) GoString() string {
- return s.String()
- }
- // SetFunctionConfiguration sets the FunctionConfiguration field's value.
- func (s *CreateFunctionOutput) SetFunctionConfiguration(v *FunctionConfiguration) *CreateFunctionOutput {
- s.FunctionConfiguration = v
- return s
- }
- type CreateGraphqlApiInput struct {
- _ struct{} `type:"structure"`
- // The authentication type: API key, AWS IAM, or Amazon Cognito user pools.
- //
- // AuthenticationType is a required field
- AuthenticationType *string `locationName:"authenticationType" type:"string" required:"true" enum:"AuthenticationType"`
- // The Amazon CloudWatch Logs configuration.
- LogConfig *LogConfig `locationName:"logConfig" type:"structure"`
- // A user-supplied name for the GraphqlApi.
- //
- // Name is a required field
- Name *string `locationName:"name" type:"string" required:"true"`
- // The OpenID Connect configuration.
- OpenIDConnectConfig *OpenIDConnectConfig `locationName:"openIDConnectConfig" type:"structure"`
- // The Amazon Cognito user pool configuration.
- UserPoolConfig *UserPoolConfig `locationName:"userPoolConfig" type:"structure"`
- }
- // String returns the string representation
- func (s CreateGraphqlApiInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateGraphqlApiInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateGraphqlApiInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateGraphqlApiInput"}
- if s.AuthenticationType == nil {
- invalidParams.Add(request.NewErrParamRequired("AuthenticationType"))
- }
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.LogConfig != nil {
- if err := s.LogConfig.Validate(); err != nil {
- invalidParams.AddNested("LogConfig", err.(request.ErrInvalidParams))
- }
- }
- if s.OpenIDConnectConfig != nil {
- if err := s.OpenIDConnectConfig.Validate(); err != nil {
- invalidParams.AddNested("OpenIDConnectConfig", err.(request.ErrInvalidParams))
- }
- }
- if s.UserPoolConfig != nil {
- if err := s.UserPoolConfig.Validate(); err != nil {
- invalidParams.AddNested("UserPoolConfig", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAuthenticationType sets the AuthenticationType field's value.
- func (s *CreateGraphqlApiInput) SetAuthenticationType(v string) *CreateGraphqlApiInput {
- s.AuthenticationType = &v
- return s
- }
- // SetLogConfig sets the LogConfig field's value.
- func (s *CreateGraphqlApiInput) SetLogConfig(v *LogConfig) *CreateGraphqlApiInput {
- s.LogConfig = v
- return s
- }
- // SetName sets the Name field's value.
- func (s *CreateGraphqlApiInput) SetName(v string) *CreateGraphqlApiInput {
- s.Name = &v
- return s
- }
- // SetOpenIDConnectConfig sets the OpenIDConnectConfig field's value.
- func (s *CreateGraphqlApiInput) SetOpenIDConnectConfig(v *OpenIDConnectConfig) *CreateGraphqlApiInput {
- s.OpenIDConnectConfig = v
- return s
- }
- // SetUserPoolConfig sets the UserPoolConfig field's value.
- func (s *CreateGraphqlApiInput) SetUserPoolConfig(v *UserPoolConfig) *CreateGraphqlApiInput {
- s.UserPoolConfig = v
- return s
- }
- type CreateGraphqlApiOutput struct {
- _ struct{} `type:"structure"`
- // The GraphqlApi.
- GraphqlApi *GraphqlApi `locationName:"graphqlApi" type:"structure"`
- }
- // String returns the string representation
- func (s CreateGraphqlApiOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateGraphqlApiOutput) GoString() string {
- return s.String()
- }
- // SetGraphqlApi sets the GraphqlApi field's value.
- func (s *CreateGraphqlApiOutput) SetGraphqlApi(v *GraphqlApi) *CreateGraphqlApiOutput {
- s.GraphqlApi = v
- return s
- }
- type CreateResolverInput struct {
- _ struct{} `type:"structure"`
- // The ID for the GraphQL API for which the resolver is being created.
- //
- // ApiId is a required field
- ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"`
- // The name of the data source for which the resolver is being created.
- DataSourceName *string `locationName:"dataSourceName" type:"string"`
- // The name of the field to attach the resolver to.
- //
- // FieldName is a required field
- FieldName *string `locationName:"fieldName" type:"string" required:"true"`
- // The resolver type.
- //
- // * UNIT: A UNIT resolver type. A UNIT resolver is the default resolver
- // type. A UNIT resolver enables you to execute a GraphQL query against a
- // single data source.
- //
- // * PIPELINE: A PIPELINE resolver type. A PIPELINE resolver enables you
- // to execute a series of Function in a serial manner. You can use a pipeline
- // resolver to execute a GraphQL query against multiple data sources.
- Kind *string `locationName:"kind" type:"string" enum:"ResolverKind"`
- // The PipelineConfig.
- PipelineConfig *PipelineConfig `locationName:"pipelineConfig" type:"structure"`
- // The mapping template to be used for requests.
- //
- // A resolver uses a request mapping template to convert a GraphQL expression
- // into a format that a data source can understand. Mapping templates are written
- // in Apache Velocity Template Language (VTL).
- //
- // RequestMappingTemplate is a required field
- RequestMappingTemplate *string `locationName:"requestMappingTemplate" min:"1" type:"string" required:"true"`
- // The mapping template to be used for responses from the data source.
- ResponseMappingTemplate *string `locationName:"responseMappingTemplate" min:"1" type:"string"`
- // The name of the Type.
- //
- // TypeName is a required field
- TypeName *string `location:"uri" locationName:"typeName" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CreateResolverInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateResolverInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateResolverInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateResolverInput"}
- if s.ApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("ApiId"))
- }
- if s.ApiId != nil && len(*s.ApiId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApiId", 1))
- }
- if s.FieldName == nil {
- invalidParams.Add(request.NewErrParamRequired("FieldName"))
- }
- if s.RequestMappingTemplate == nil {
- invalidParams.Add(request.NewErrParamRequired("RequestMappingTemplate"))
- }
- if s.RequestMappingTemplate != nil && len(*s.RequestMappingTemplate) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RequestMappingTemplate", 1))
- }
- if s.ResponseMappingTemplate != nil && len(*s.ResponseMappingTemplate) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ResponseMappingTemplate", 1))
- }
- if s.TypeName == nil {
- invalidParams.Add(request.NewErrParamRequired("TypeName"))
- }
- if s.TypeName != nil && len(*s.TypeName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("TypeName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetApiId sets the ApiId field's value.
- func (s *CreateResolverInput) SetApiId(v string) *CreateResolverInput {
- s.ApiId = &v
- return s
- }
- // SetDataSourceName sets the DataSourceName field's value.
- func (s *CreateResolverInput) SetDataSourceName(v string) *CreateResolverInput {
- s.DataSourceName = &v
- return s
- }
- // SetFieldName sets the FieldName field's value.
- func (s *CreateResolverInput) SetFieldName(v string) *CreateResolverInput {
- s.FieldName = &v
- return s
- }
- // SetKind sets the Kind field's value.
- func (s *CreateResolverInput) SetKind(v string) *CreateResolverInput {
- s.Kind = &v
- return s
- }
- // SetPipelineConfig sets the PipelineConfig field's value.
- func (s *CreateResolverInput) SetPipelineConfig(v *PipelineConfig) *CreateResolverInput {
- s.PipelineConfig = v
- return s
- }
- // SetRequestMappingTemplate sets the RequestMappingTemplate field's value.
- func (s *CreateResolverInput) SetRequestMappingTemplate(v string) *CreateResolverInput {
- s.RequestMappingTemplate = &v
- return s
- }
- // SetResponseMappingTemplate sets the ResponseMappingTemplate field's value.
- func (s *CreateResolverInput) SetResponseMappingTemplate(v string) *CreateResolverInput {
- s.ResponseMappingTemplate = &v
- return s
- }
- // SetTypeName sets the TypeName field's value.
- func (s *CreateResolverInput) SetTypeName(v string) *CreateResolverInput {
- s.TypeName = &v
- return s
- }
- type CreateResolverOutput struct {
- _ struct{} `type:"structure"`
- // The Resolver object.
- Resolver *Resolver `locationName:"resolver" type:"structure"`
- }
- // String returns the string representation
- func (s CreateResolverOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateResolverOutput) GoString() string {
- return s.String()
- }
- // SetResolver sets the Resolver field's value.
- func (s *CreateResolverOutput) SetResolver(v *Resolver) *CreateResolverOutput {
- s.Resolver = v
- return s
- }
- type CreateTypeInput struct {
- _ struct{} `type:"structure"`
- // The API ID.
- //
- // ApiId is a required field
- ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"`
- // The type definition, in GraphQL Schema Definition Language (SDL) format.
- //
- // For more information, see the GraphQL SDL documentation (http://graphql.org/learn/schema/).
- //
- // Definition is a required field
- Definition *string `locationName:"definition" type:"string" required:"true"`
- // The type format: SDL or JSON.
- //
- // Format is a required field
- Format *string `locationName:"format" type:"string" required:"true" enum:"TypeDefinitionFormat"`
- }
- // String returns the string representation
- func (s CreateTypeInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateTypeInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateTypeInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateTypeInput"}
- if s.ApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("ApiId"))
- }
- if s.ApiId != nil && len(*s.ApiId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApiId", 1))
- }
- if s.Definition == nil {
- invalidParams.Add(request.NewErrParamRequired("Definition"))
- }
- if s.Format == nil {
- invalidParams.Add(request.NewErrParamRequired("Format"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetApiId sets the ApiId field's value.
- func (s *CreateTypeInput) SetApiId(v string) *CreateTypeInput {
- s.ApiId = &v
- return s
- }
- // SetDefinition sets the Definition field's value.
- func (s *CreateTypeInput) SetDefinition(v string) *CreateTypeInput {
- s.Definition = &v
- return s
- }
- // SetFormat sets the Format field's value.
- func (s *CreateTypeInput) SetFormat(v string) *CreateTypeInput {
- s.Format = &v
- return s
- }
- type CreateTypeOutput struct {
- _ struct{} `type:"structure"`
- // The Type object.
- Type *Type `locationName:"type" type:"structure"`
- }
- // String returns the string representation
- func (s CreateTypeOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateTypeOutput) GoString() string {
- return s.String()
- }
- // SetType sets the Type field's value.
- func (s *CreateTypeOutput) SetType(v *Type) *CreateTypeOutput {
- s.Type = v
- return s
- }
- // Describes a data source.
- type DataSource struct {
- _ struct{} `type:"structure"`
- // The data source ARN.
- DataSourceArn *string `locationName:"dataSourceArn" type:"string"`
- // The description of the data source.
- Description *string `locationName:"description" type:"string"`
- // Amazon DynamoDB settings.
- DynamodbConfig *DynamodbDataSourceConfig `locationName:"dynamodbConfig" type:"structure"`
- // Amazon Elasticsearch Service settings.
- ElasticsearchConfig *ElasticsearchDataSourceConfig `locationName:"elasticsearchConfig" type:"structure"`
- // HTTP endpoint settings.
- HttpConfig *HttpDataSourceConfig `locationName:"httpConfig" type:"structure"`
- // AWS Lambda settings.
- LambdaConfig *LambdaDataSourceConfig `locationName:"lambdaConfig" type:"structure"`
- // The name of the data source.
- Name *string `locationName:"name" type:"string"`
- // Relational database settings.
- RelationalDatabaseConfig *RelationalDatabaseDataSourceConfig `locationName:"relationalDatabaseConfig" type:"structure"`
- // The AWS IAM service role ARN for the data source. The system assumes this
- // role when accessing the data source.
- ServiceRoleArn *string `locationName:"serviceRoleArn" type:"string"`
- // The type of the data source.
- //
- // * AMAZON_DYNAMODB: The data source is an Amazon DynamoDB table.
- //
- // * AMAZON_ELASTICSEARCH: The data source is an Amazon Elasticsearch Service
- // domain.
- //
- // * AWS_LAMBDA: The data source is an AWS Lambda function.
- //
- // * NONE: There is no data source. This type is used when you wish to invoke
- // a GraphQL operation without connecting to a data source, such as performing
- // data transformation with resolvers or triggering a subscription to be
- // invoked from a mutation.
- //
- // * HTTP: The data source is an HTTP endpoint.
- //
- // * RELATIONAL_DATABASE: The data source is a relational database.
- Type *string `locationName:"type" type:"string" enum:"DataSourceType"`
- }
- // String returns the string representation
- func (s DataSource) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DataSource) GoString() string {
- return s.String()
- }
- // SetDataSourceArn sets the DataSourceArn field's value.
- func (s *DataSource) SetDataSourceArn(v string) *DataSource {
- s.DataSourceArn = &v
- return s
- }
- // SetDescription sets the Description field's value.
- func (s *DataSource) SetDescription(v string) *DataSource {
- s.Description = &v
- return s
- }
- // SetDynamodbConfig sets the DynamodbConfig field's value.
- func (s *DataSource) SetDynamodbConfig(v *DynamodbDataSourceConfig) *DataSource {
- s.DynamodbConfig = v
- return s
- }
- // SetElasticsearchConfig sets the ElasticsearchConfig field's value.
- func (s *DataSource) SetElasticsearchConfig(v *ElasticsearchDataSourceConfig) *DataSource {
- s.ElasticsearchConfig = v
- return s
- }
- // SetHttpConfig sets the HttpConfig field's value.
- func (s *DataSource) SetHttpConfig(v *HttpDataSourceConfig) *DataSource {
- s.HttpConfig = v
- return s
- }
- // SetLambdaConfig sets the LambdaConfig field's value.
- func (s *DataSource) SetLambdaConfig(v *LambdaDataSourceConfig) *DataSource {
- s.LambdaConfig = v
- return s
- }
- // SetName sets the Name field's value.
- func (s *DataSource) SetName(v string) *DataSource {
- s.Name = &v
- return s
- }
- // SetRelationalDatabaseConfig sets the RelationalDatabaseConfig field's value.
- func (s *DataSource) SetRelationalDatabaseConfig(v *RelationalDatabaseDataSourceConfig) *DataSource {
- s.RelationalDatabaseConfig = v
- return s
- }
- // SetServiceRoleArn sets the ServiceRoleArn field's value.
- func (s *DataSource) SetServiceRoleArn(v string) *DataSource {
- s.ServiceRoleArn = &v
- return s
- }
- // SetType sets the Type field's value.
- func (s *DataSource) SetType(v string) *DataSource {
- s.Type = &v
- return s
- }
- type DeleteApiKeyInput struct {
- _ struct{} `type:"structure"`
- // The API ID.
- //
- // ApiId is a required field
- ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"`
- // The ID for the API key.
- //
- // Id is a required field
- Id *string `location:"uri" locationName:"id" 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.ApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("ApiId"))
- }
- if s.ApiId != nil && len(*s.ApiId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApiId", 1))
- }
- if s.Id == nil {
- invalidParams.Add(request.NewErrParamRequired("Id"))
- }
- if s.Id != nil && len(*s.Id) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Id", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetApiId sets the ApiId field's value.
- func (s *DeleteApiKeyInput) SetApiId(v string) *DeleteApiKeyInput {
- s.ApiId = &v
- return s
- }
- // SetId sets the Id field's value.
- func (s *DeleteApiKeyInput) SetId(v string) *DeleteApiKeyInput {
- s.Id = &v
- return s
- }
- 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()
- }
- type DeleteDataSourceInput struct {
- _ struct{} `type:"structure"`
- // The API ID.
- //
- // ApiId is a required field
- ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"`
- // The name of the data source.
- //
- // Name is a required field
- Name *string `location:"uri" locationName:"name" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteDataSourceInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteDataSourceInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteDataSourceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteDataSourceInput"}
- if s.ApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("ApiId"))
- }
- if s.ApiId != nil && len(*s.ApiId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApiId", 1))
- }
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetApiId sets the ApiId field's value.
- func (s *DeleteDataSourceInput) SetApiId(v string) *DeleteDataSourceInput {
- s.ApiId = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *DeleteDataSourceInput) SetName(v string) *DeleteDataSourceInput {
- s.Name = &v
- return s
- }
- type DeleteDataSourceOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteDataSourceOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteDataSourceOutput) GoString() string {
- return s.String()
- }
- type DeleteFunctionInput struct {
- _ struct{} `type:"structure"`
- // The GraphQL API ID.
- //
- // ApiId is a required field
- ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"`
- // The Function ID.
- //
- // FunctionId is a required field
- FunctionId *string `location:"uri" locationName:"functionId" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteFunctionInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteFunctionInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteFunctionInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteFunctionInput"}
- if s.ApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("ApiId"))
- }
- if s.ApiId != nil && len(*s.ApiId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApiId", 1))
- }
- if s.FunctionId == nil {
- invalidParams.Add(request.NewErrParamRequired("FunctionId"))
- }
- if s.FunctionId != nil && len(*s.FunctionId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("FunctionId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetApiId sets the ApiId field's value.
- func (s *DeleteFunctionInput) SetApiId(v string) *DeleteFunctionInput {
- s.ApiId = &v
- return s
- }
- // SetFunctionId sets the FunctionId field's value.
- func (s *DeleteFunctionInput) SetFunctionId(v string) *DeleteFunctionInput {
- s.FunctionId = &v
- return s
- }
- type DeleteFunctionOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteFunctionOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteFunctionOutput) GoString() string {
- return s.String()
- }
- type DeleteGraphqlApiInput struct {
- _ struct{} `type:"structure"`
- // The API ID.
- //
- // ApiId is a required field
- ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteGraphqlApiInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteGraphqlApiInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteGraphqlApiInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteGraphqlApiInput"}
- if s.ApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("ApiId"))
- }
- if s.ApiId != nil && len(*s.ApiId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApiId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetApiId sets the ApiId field's value.
- func (s *DeleteGraphqlApiInput) SetApiId(v string) *DeleteGraphqlApiInput {
- s.ApiId = &v
- return s
- }
- type DeleteGraphqlApiOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteGraphqlApiOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteGraphqlApiOutput) GoString() string {
- return s.String()
- }
- type DeleteResolverInput struct {
- _ struct{} `type:"structure"`
- // The API ID.
- //
- // ApiId is a required field
- ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"`
- // The resolver field name.
- //
- // FieldName is a required field
- FieldName *string `location:"uri" locationName:"fieldName" type:"string" required:"true"`
- // The name of the resolver type.
- //
- // TypeName is a required field
- TypeName *string `location:"uri" locationName:"typeName" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteResolverInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteResolverInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteResolverInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteResolverInput"}
- if s.ApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("ApiId"))
- }
- if s.ApiId != nil && len(*s.ApiId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApiId", 1))
- }
- if s.FieldName == nil {
- invalidParams.Add(request.NewErrParamRequired("FieldName"))
- }
- if s.FieldName != nil && len(*s.FieldName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("FieldName", 1))
- }
- if s.TypeName == nil {
- invalidParams.Add(request.NewErrParamRequired("TypeName"))
- }
- if s.TypeName != nil && len(*s.TypeName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("TypeName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetApiId sets the ApiId field's value.
- func (s *DeleteResolverInput) SetApiId(v string) *DeleteResolverInput {
- s.ApiId = &v
- return s
- }
- // SetFieldName sets the FieldName field's value.
- func (s *DeleteResolverInput) SetFieldName(v string) *DeleteResolverInput {
- s.FieldName = &v
- return s
- }
- // SetTypeName sets the TypeName field's value.
- func (s *DeleteResolverInput) SetTypeName(v string) *DeleteResolverInput {
- s.TypeName = &v
- return s
- }
- type DeleteResolverOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteResolverOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteResolverOutput) GoString() string {
- return s.String()
- }
- type DeleteTypeInput struct {
- _ struct{} `type:"structure"`
- // The API ID.
- //
- // ApiId is a required field
- ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"`
- // The type name.
- //
- // TypeName is a required field
- TypeName *string `location:"uri" locationName:"typeName" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteTypeInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteTypeInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteTypeInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteTypeInput"}
- if s.ApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("ApiId"))
- }
- if s.ApiId != nil && len(*s.ApiId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApiId", 1))
- }
- if s.TypeName == nil {
- invalidParams.Add(request.NewErrParamRequired("TypeName"))
- }
- if s.TypeName != nil && len(*s.TypeName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("TypeName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetApiId sets the ApiId field's value.
- func (s *DeleteTypeInput) SetApiId(v string) *DeleteTypeInput {
- s.ApiId = &v
- return s
- }
- // SetTypeName sets the TypeName field's value.
- func (s *DeleteTypeInput) SetTypeName(v string) *DeleteTypeInput {
- s.TypeName = &v
- return s
- }
- type DeleteTypeOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteTypeOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteTypeOutput) GoString() string {
- return s.String()
- }
- // Describes an Amazon DynamoDB data source configuration.
- type DynamodbDataSourceConfig struct {
- _ struct{} `type:"structure"`
- // The AWS Region.
- //
- // AwsRegion is a required field
- AwsRegion *string `locationName:"awsRegion" type:"string" required:"true"`
- // The table name.
- //
- // TableName is a required field
- TableName *string `locationName:"tableName" type:"string" required:"true"`
- // Set to TRUE to use Amazon Cognito credentials with this data source.
- UseCallerCredentials *bool `locationName:"useCallerCredentials" type:"boolean"`
- }
- // String returns the string representation
- func (s DynamodbDataSourceConfig) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DynamodbDataSourceConfig) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DynamodbDataSourceConfig) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DynamodbDataSourceConfig"}
- if s.AwsRegion == nil {
- invalidParams.Add(request.NewErrParamRequired("AwsRegion"))
- }
- if s.TableName == nil {
- invalidParams.Add(request.NewErrParamRequired("TableName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAwsRegion sets the AwsRegion field's value.
- func (s *DynamodbDataSourceConfig) SetAwsRegion(v string) *DynamodbDataSourceConfig {
- s.AwsRegion = &v
- return s
- }
- // SetTableName sets the TableName field's value.
- func (s *DynamodbDataSourceConfig) SetTableName(v string) *DynamodbDataSourceConfig {
- s.TableName = &v
- return s
- }
- // SetUseCallerCredentials sets the UseCallerCredentials field's value.
- func (s *DynamodbDataSourceConfig) SetUseCallerCredentials(v bool) *DynamodbDataSourceConfig {
- s.UseCallerCredentials = &v
- return s
- }
- // Describes an Elasticsearch data source configuration.
- type ElasticsearchDataSourceConfig struct {
- _ struct{} `type:"structure"`
- // The AWS Region.
- //
- // AwsRegion is a required field
- AwsRegion *string `locationName:"awsRegion" type:"string" required:"true"`
- // The endpoint.
- //
- // Endpoint is a required field
- Endpoint *string `locationName:"endpoint" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ElasticsearchDataSourceConfig) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ElasticsearchDataSourceConfig) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ElasticsearchDataSourceConfig) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ElasticsearchDataSourceConfig"}
- if s.AwsRegion == nil {
- invalidParams.Add(request.NewErrParamRequired("AwsRegion"))
- }
- if s.Endpoint == nil {
- invalidParams.Add(request.NewErrParamRequired("Endpoint"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAwsRegion sets the AwsRegion field's value.
- func (s *ElasticsearchDataSourceConfig) SetAwsRegion(v string) *ElasticsearchDataSourceConfig {
- s.AwsRegion = &v
- return s
- }
- // SetEndpoint sets the Endpoint field's value.
- func (s *ElasticsearchDataSourceConfig) SetEndpoint(v string) *ElasticsearchDataSourceConfig {
- s.Endpoint = &v
- return s
- }
- // A function is a reusable entity. Multiple functions can be used to compose
- // the resolver logic.
- type FunctionConfiguration struct {
- _ struct{} `type:"structure"`
- // The name of the DataSource.
- DataSourceName *string `locationName:"dataSourceName" type:"string"`
- // The Function description.
- Description *string `locationName:"description" type:"string"`
- // The ARN of the Function object.
- FunctionArn *string `locationName:"functionArn" type:"string"`
- // A unique ID representing the Function object.
- FunctionId *string `locationName:"functionId" type:"string"`
- // The version of the request mapping template. Currently only the 2018-05-29
- // version of the template is supported.
- FunctionVersion *string `locationName:"functionVersion" type:"string"`
- // The name of the Function object.
- Name *string `locationName:"name" type:"string"`
- // The Function request mapping template. Functions support only the 2018-05-29
- // version of the request mapping template.
- RequestMappingTemplate *string `locationName:"requestMappingTemplate" min:"1" type:"string"`
- // The Function response mapping template.
- ResponseMappingTemplate *string `locationName:"responseMappingTemplate" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s FunctionConfiguration) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s FunctionConfiguration) GoString() string {
- return s.String()
- }
- // SetDataSourceName sets the DataSourceName field's value.
- func (s *FunctionConfiguration) SetDataSourceName(v string) *FunctionConfiguration {
- s.DataSourceName = &v
- return s
- }
- // SetDescription sets the Description field's value.
- func (s *FunctionConfiguration) SetDescription(v string) *FunctionConfiguration {
- s.Description = &v
- return s
- }
- // SetFunctionArn sets the FunctionArn field's value.
- func (s *FunctionConfiguration) SetFunctionArn(v string) *FunctionConfiguration {
- s.FunctionArn = &v
- return s
- }
- // SetFunctionId sets the FunctionId field's value.
- func (s *FunctionConfiguration) SetFunctionId(v string) *FunctionConfiguration {
- s.FunctionId = &v
- return s
- }
- // SetFunctionVersion sets the FunctionVersion field's value.
- func (s *FunctionConfiguration) SetFunctionVersion(v string) *FunctionConfiguration {
- s.FunctionVersion = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *FunctionConfiguration) SetName(v string) *FunctionConfiguration {
- s.Name = &v
- return s
- }
- // SetRequestMappingTemplate sets the RequestMappingTemplate field's value.
- func (s *FunctionConfiguration) SetRequestMappingTemplate(v string) *FunctionConfiguration {
- s.RequestMappingTemplate = &v
- return s
- }
- // SetResponseMappingTemplate sets the ResponseMappingTemplate field's value.
- func (s *FunctionConfiguration) SetResponseMappingTemplate(v string) *FunctionConfiguration {
- s.ResponseMappingTemplate = &v
- return s
- }
- type GetDataSourceInput struct {
- _ struct{} `type:"structure"`
- // The API ID.
- //
- // ApiId is a required field
- ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"`
- // The name of the data source.
- //
- // Name is a required field
- Name *string `location:"uri" locationName:"name" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetDataSourceInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetDataSourceInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetDataSourceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetDataSourceInput"}
- if s.ApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("ApiId"))
- }
- if s.ApiId != nil && len(*s.ApiId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApiId", 1))
- }
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetApiId sets the ApiId field's value.
- func (s *GetDataSourceInput) SetApiId(v string) *GetDataSourceInput {
- s.ApiId = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *GetDataSourceInput) SetName(v string) *GetDataSourceInput {
- s.Name = &v
- return s
- }
- type GetDataSourceOutput struct {
- _ struct{} `type:"structure"`
- // The DataSource object.
- DataSource *DataSource `locationName:"dataSource" type:"structure"`
- }
- // String returns the string representation
- func (s GetDataSourceOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetDataSourceOutput) GoString() string {
- return s.String()
- }
- // SetDataSource sets the DataSource field's value.
- func (s *GetDataSourceOutput) SetDataSource(v *DataSource) *GetDataSourceOutput {
- s.DataSource = v
- return s
- }
- type GetFunctionInput struct {
- _ struct{} `type:"structure"`
- // The GraphQL API ID.
- //
- // ApiId is a required field
- ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"`
- // The Function ID.
- //
- // FunctionId is a required field
- FunctionId *string `location:"uri" locationName:"functionId" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetFunctionInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetFunctionInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetFunctionInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetFunctionInput"}
- if s.ApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("ApiId"))
- }
- if s.ApiId != nil && len(*s.ApiId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApiId", 1))
- }
- if s.FunctionId == nil {
- invalidParams.Add(request.NewErrParamRequired("FunctionId"))
- }
- if s.FunctionId != nil && len(*s.FunctionId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("FunctionId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetApiId sets the ApiId field's value.
- func (s *GetFunctionInput) SetApiId(v string) *GetFunctionInput {
- s.ApiId = &v
- return s
- }
- // SetFunctionId sets the FunctionId field's value.
- func (s *GetFunctionInput) SetFunctionId(v string) *GetFunctionInput {
- s.FunctionId = &v
- return s
- }
- type GetFunctionOutput struct {
- _ struct{} `type:"structure"`
- // The Function object.
- FunctionConfiguration *FunctionConfiguration `locationName:"functionConfiguration" type:"structure"`
- }
- // String returns the string representation
- func (s GetFunctionOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetFunctionOutput) GoString() string {
- return s.String()
- }
- // SetFunctionConfiguration sets the FunctionConfiguration field's value.
- func (s *GetFunctionOutput) SetFunctionConfiguration(v *FunctionConfiguration) *GetFunctionOutput {
- s.FunctionConfiguration = v
- return s
- }
- type GetGraphqlApiInput struct {
- _ struct{} `type:"structure"`
- // The API ID for the GraphQL API.
- //
- // ApiId is a required field
- ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetGraphqlApiInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetGraphqlApiInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetGraphqlApiInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetGraphqlApiInput"}
- if s.ApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("ApiId"))
- }
- if s.ApiId != nil && len(*s.ApiId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApiId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetApiId sets the ApiId field's value.
- func (s *GetGraphqlApiInput) SetApiId(v string) *GetGraphqlApiInput {
- s.ApiId = &v
- return s
- }
- type GetGraphqlApiOutput struct {
- _ struct{} `type:"structure"`
- // The GraphqlApi object.
- GraphqlApi *GraphqlApi `locationName:"graphqlApi" type:"structure"`
- }
- // String returns the string representation
- func (s GetGraphqlApiOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetGraphqlApiOutput) GoString() string {
- return s.String()
- }
- // SetGraphqlApi sets the GraphqlApi field's value.
- func (s *GetGraphqlApiOutput) SetGraphqlApi(v *GraphqlApi) *GetGraphqlApiOutput {
- s.GraphqlApi = v
- return s
- }
- type GetIntrospectionSchemaInput struct {
- _ struct{} `type:"structure"`
- // The API ID.
- //
- // ApiId is a required field
- ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"`
- // The schema format: SDL or JSON.
- //
- // Format is a required field
- Format *string `location:"querystring" locationName:"format" type:"string" required:"true" enum:"OutputType"`
- }
- // String returns the string representation
- func (s GetIntrospectionSchemaInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetIntrospectionSchemaInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetIntrospectionSchemaInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetIntrospectionSchemaInput"}
- if s.ApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("ApiId"))
- }
- if s.ApiId != nil && len(*s.ApiId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApiId", 1))
- }
- if s.Format == nil {
- invalidParams.Add(request.NewErrParamRequired("Format"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetApiId sets the ApiId field's value.
- func (s *GetIntrospectionSchemaInput) SetApiId(v string) *GetIntrospectionSchemaInput {
- s.ApiId = &v
- return s
- }
- // SetFormat sets the Format field's value.
- func (s *GetIntrospectionSchemaInput) SetFormat(v string) *GetIntrospectionSchemaInput {
- s.Format = &v
- return s
- }
- type GetIntrospectionSchemaOutput struct {
- _ struct{} `type:"structure" payload:"Schema"`
- // The schema, in GraphQL Schema Definition Language (SDL) format.
- //
- // For more information, see the GraphQL SDL documentation (http://graphql.org/learn/schema/).
- Schema []byte `locationName:"schema" type:"blob"`
- }
- // String returns the string representation
- func (s GetIntrospectionSchemaOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetIntrospectionSchemaOutput) GoString() string {
- return s.String()
- }
- // SetSchema sets the Schema field's value.
- func (s *GetIntrospectionSchemaOutput) SetSchema(v []byte) *GetIntrospectionSchemaOutput {
- s.Schema = v
- return s
- }
- type GetResolverInput struct {
- _ struct{} `type:"structure"`
- // The API ID.
- //
- // ApiId is a required field
- ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"`
- // The resolver field name.
- //
- // FieldName is a required field
- FieldName *string `location:"uri" locationName:"fieldName" type:"string" required:"true"`
- // The resolver type name.
- //
- // TypeName is a required field
- TypeName *string `location:"uri" locationName:"typeName" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetResolverInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetResolverInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetResolverInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetResolverInput"}
- if s.ApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("ApiId"))
- }
- if s.ApiId != nil && len(*s.ApiId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApiId", 1))
- }
- if s.FieldName == nil {
- invalidParams.Add(request.NewErrParamRequired("FieldName"))
- }
- if s.FieldName != nil && len(*s.FieldName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("FieldName", 1))
- }
- if s.TypeName == nil {
- invalidParams.Add(request.NewErrParamRequired("TypeName"))
- }
- if s.TypeName != nil && len(*s.TypeName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("TypeName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetApiId sets the ApiId field's value.
- func (s *GetResolverInput) SetApiId(v string) *GetResolverInput {
- s.ApiId = &v
- return s
- }
- // SetFieldName sets the FieldName field's value.
- func (s *GetResolverInput) SetFieldName(v string) *GetResolverInput {
- s.FieldName = &v
- return s
- }
- // SetTypeName sets the TypeName field's value.
- func (s *GetResolverInput) SetTypeName(v string) *GetResolverInput {
- s.TypeName = &v
- return s
- }
- type GetResolverOutput struct {
- _ struct{} `type:"structure"`
- // The Resolver object.
- Resolver *Resolver `locationName:"resolver" type:"structure"`
- }
- // String returns the string representation
- func (s GetResolverOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetResolverOutput) GoString() string {
- return s.String()
- }
- // SetResolver sets the Resolver field's value.
- func (s *GetResolverOutput) SetResolver(v *Resolver) *GetResolverOutput {
- s.Resolver = v
- return s
- }
- type GetSchemaCreationStatusInput struct {
- _ struct{} `type:"structure"`
- // The API ID.
- //
- // ApiId is a required field
- ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetSchemaCreationStatusInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetSchemaCreationStatusInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetSchemaCreationStatusInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetSchemaCreationStatusInput"}
- if s.ApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("ApiId"))
- }
- if s.ApiId != nil && len(*s.ApiId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApiId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetApiId sets the ApiId field's value.
- func (s *GetSchemaCreationStatusInput) SetApiId(v string) *GetSchemaCreationStatusInput {
- s.ApiId = &v
- return s
- }
- type GetSchemaCreationStatusOutput struct {
- _ struct{} `type:"structure"`
- // Detailed information about the status of the schema creation operation.
- Details *string `locationName:"details" type:"string"`
- // The current state of the schema (PROCESSING, ACTIVE, or DELETING). Once the
- // schema is in the ACTIVE state, you can add data.
- Status *string `locationName:"status" type:"string" enum:"SchemaStatus"`
- }
- // String returns the string representation
- func (s GetSchemaCreationStatusOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetSchemaCreationStatusOutput) GoString() string {
- return s.String()
- }
- // SetDetails sets the Details field's value.
- func (s *GetSchemaCreationStatusOutput) SetDetails(v string) *GetSchemaCreationStatusOutput {
- s.Details = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *GetSchemaCreationStatusOutput) SetStatus(v string) *GetSchemaCreationStatusOutput {
- s.Status = &v
- return s
- }
- type GetTypeInput struct {
- _ struct{} `type:"structure"`
- // The API ID.
- //
- // ApiId is a required field
- ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"`
- // The type format: SDL or JSON.
- //
- // Format is a required field
- Format *string `location:"querystring" locationName:"format" type:"string" required:"true" enum:"TypeDefinitionFormat"`
- // The type name.
- //
- // TypeName is a required field
- TypeName *string `location:"uri" locationName:"typeName" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetTypeInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetTypeInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetTypeInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetTypeInput"}
- if s.ApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("ApiId"))
- }
- if s.ApiId != nil && len(*s.ApiId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApiId", 1))
- }
- if s.Format == nil {
- invalidParams.Add(request.NewErrParamRequired("Format"))
- }
- if s.TypeName == nil {
- invalidParams.Add(request.NewErrParamRequired("TypeName"))
- }
- if s.TypeName != nil && len(*s.TypeName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("TypeName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetApiId sets the ApiId field's value.
- func (s *GetTypeInput) SetApiId(v string) *GetTypeInput {
- s.ApiId = &v
- return s
- }
- // SetFormat sets the Format field's value.
- func (s *GetTypeInput) SetFormat(v string) *GetTypeInput {
- s.Format = &v
- return s
- }
- // SetTypeName sets the TypeName field's value.
- func (s *GetTypeInput) SetTypeName(v string) *GetTypeInput {
- s.TypeName = &v
- return s
- }
- type GetTypeOutput struct {
- _ struct{} `type:"structure"`
- // The Type object.
- Type *Type `locationName:"type" type:"structure"`
- }
- // String returns the string representation
- func (s GetTypeOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetTypeOutput) GoString() string {
- return s.String()
- }
- // SetType sets the Type field's value.
- func (s *GetTypeOutput) SetType(v *Type) *GetTypeOutput {
- s.Type = v
- return s
- }
- // Describes a GraphQL API.
- type GraphqlApi struct {
- _ struct{} `type:"structure"`
- // The API ID.
- ApiId *string `locationName:"apiId" type:"string"`
- // The ARN.
- Arn *string `locationName:"arn" type:"string"`
- // The authentication type.
- AuthenticationType *string `locationName:"authenticationType" type:"string" enum:"AuthenticationType"`
- // The Amazon CloudWatch Logs configuration.
- LogConfig *LogConfig `locationName:"logConfig" type:"structure"`
- // The API name.
- Name *string `locationName:"name" type:"string"`
- // The OpenID Connect configuration.
- OpenIDConnectConfig *OpenIDConnectConfig `locationName:"openIDConnectConfig" type:"structure"`
- // The URIs.
- Uris map[string]*string `locationName:"uris" type:"map"`
- // The Amazon Cognito user pool configuration.
- UserPoolConfig *UserPoolConfig `locationName:"userPoolConfig" type:"structure"`
- }
- // String returns the string representation
- func (s GraphqlApi) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GraphqlApi) GoString() string {
- return s.String()
- }
- // SetApiId sets the ApiId field's value.
- func (s *GraphqlApi) SetApiId(v string) *GraphqlApi {
- s.ApiId = &v
- return s
- }
- // SetArn sets the Arn field's value.
- func (s *GraphqlApi) SetArn(v string) *GraphqlApi {
- s.Arn = &v
- return s
- }
- // SetAuthenticationType sets the AuthenticationType field's value.
- func (s *GraphqlApi) SetAuthenticationType(v string) *GraphqlApi {
- s.AuthenticationType = &v
- return s
- }
- // SetLogConfig sets the LogConfig field's value.
- func (s *GraphqlApi) SetLogConfig(v *LogConfig) *GraphqlApi {
- s.LogConfig = v
- return s
- }
- // SetName sets the Name field's value.
- func (s *GraphqlApi) SetName(v string) *GraphqlApi {
- s.Name = &v
- return s
- }
- // SetOpenIDConnectConfig sets the OpenIDConnectConfig field's value.
- func (s *GraphqlApi) SetOpenIDConnectConfig(v *OpenIDConnectConfig) *GraphqlApi {
- s.OpenIDConnectConfig = v
- return s
- }
- // SetUris sets the Uris field's value.
- func (s *GraphqlApi) SetUris(v map[string]*string) *GraphqlApi {
- s.Uris = v
- return s
- }
- // SetUserPoolConfig sets the UserPoolConfig field's value.
- func (s *GraphqlApi) SetUserPoolConfig(v *UserPoolConfig) *GraphqlApi {
- s.UserPoolConfig = v
- return s
- }
- // Describes an HTTP data source configuration.
- type HttpDataSourceConfig struct {
- _ struct{} `type:"structure"`
- // The authorization config in case the HTTP endpoint requires authorization.
- AuthorizationConfig *AuthorizationConfig `locationName:"authorizationConfig" type:"structure"`
- // The HTTP URL endpoint. You can either specify the domain name or IP, and
- // port combination, and the URL scheme must be HTTP or HTTPS. If the port is
- // not specified, AWS AppSync uses the default port 80 for the HTTP endpoint
- // and port 443 for HTTPS endpoints.
- Endpoint *string `locationName:"endpoint" type:"string"`
- }
- // String returns the string representation
- func (s HttpDataSourceConfig) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s HttpDataSourceConfig) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *HttpDataSourceConfig) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "HttpDataSourceConfig"}
- if s.AuthorizationConfig != nil {
- if err := s.AuthorizationConfig.Validate(); err != nil {
- invalidParams.AddNested("AuthorizationConfig", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAuthorizationConfig sets the AuthorizationConfig field's value.
- func (s *HttpDataSourceConfig) SetAuthorizationConfig(v *AuthorizationConfig) *HttpDataSourceConfig {
- s.AuthorizationConfig = v
- return s
- }
- // SetEndpoint sets the Endpoint field's value.
- func (s *HttpDataSourceConfig) SetEndpoint(v string) *HttpDataSourceConfig {
- s.Endpoint = &v
- return s
- }
- // Describes an AWS Lambda data source configuration.
- type LambdaDataSourceConfig struct {
- _ struct{} `type:"structure"`
- // The ARN for the Lambda function.
- //
- // LambdaFunctionArn is a required field
- LambdaFunctionArn *string `locationName:"lambdaFunctionArn" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s LambdaDataSourceConfig) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s LambdaDataSourceConfig) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *LambdaDataSourceConfig) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "LambdaDataSourceConfig"}
- if s.LambdaFunctionArn == nil {
- invalidParams.Add(request.NewErrParamRequired("LambdaFunctionArn"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetLambdaFunctionArn sets the LambdaFunctionArn field's value.
- func (s *LambdaDataSourceConfig) SetLambdaFunctionArn(v string) *LambdaDataSourceConfig {
- s.LambdaFunctionArn = &v
- return s
- }
- type ListApiKeysInput struct {
- _ struct{} `type:"structure"`
- // The API ID.
- //
- // ApiId is a required field
- ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"`
- // The maximum number of results you want the request to return.
- MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"`
- // An identifier that was returned from the previous call to this operation,
- // which can be used to return the next set of items in the list.
- NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
- }
- // String returns the string representation
- func (s ListApiKeysInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListApiKeysInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListApiKeysInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListApiKeysInput"}
- if s.ApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("ApiId"))
- }
- if s.ApiId != nil && len(*s.ApiId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApiId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetApiId sets the ApiId field's value.
- func (s *ListApiKeysInput) SetApiId(v string) *ListApiKeysInput {
- s.ApiId = &v
- return s
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListApiKeysInput) SetMaxResults(v int64) *ListApiKeysInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListApiKeysInput) SetNextToken(v string) *ListApiKeysInput {
- s.NextToken = &v
- return s
- }
- type ListApiKeysOutput struct {
- _ struct{} `type:"structure"`
- // The ApiKey objects.
- ApiKeys []*ApiKey `locationName:"apiKeys" type:"list"`
- // An identifier to be passed in the next request to this operation to return
- // the next set of items in the list.
- NextToken *string `locationName:"nextToken" type:"string"`
- }
- // String returns the string representation
- func (s ListApiKeysOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListApiKeysOutput) GoString() string {
- return s.String()
- }
- // SetApiKeys sets the ApiKeys field's value.
- func (s *ListApiKeysOutput) SetApiKeys(v []*ApiKey) *ListApiKeysOutput {
- s.ApiKeys = v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListApiKeysOutput) SetNextToken(v string) *ListApiKeysOutput {
- s.NextToken = &v
- return s
- }
- type ListDataSourcesInput struct {
- _ struct{} `type:"structure"`
- // The API ID.
- //
- // ApiId is a required field
- ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"`
- // The maximum number of results you want the request to return.
- MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"`
- // An identifier that was returned from the previous call to this operation,
- // which can be used to return the next set of items in the list.
- NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
- }
- // String returns the string representation
- func (s ListDataSourcesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListDataSourcesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListDataSourcesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListDataSourcesInput"}
- if s.ApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("ApiId"))
- }
- if s.ApiId != nil && len(*s.ApiId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApiId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetApiId sets the ApiId field's value.
- func (s *ListDataSourcesInput) SetApiId(v string) *ListDataSourcesInput {
- s.ApiId = &v
- return s
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListDataSourcesInput) SetMaxResults(v int64) *ListDataSourcesInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListDataSourcesInput) SetNextToken(v string) *ListDataSourcesInput {
- s.NextToken = &v
- return s
- }
- type ListDataSourcesOutput struct {
- _ struct{} `type:"structure"`
- // The DataSource objects.
- DataSources []*DataSource `locationName:"dataSources" type:"list"`
- // An identifier to be passed in the next request to this operation to return
- // the next set of items in the list.
- NextToken *string `locationName:"nextToken" type:"string"`
- }
- // String returns the string representation
- func (s ListDataSourcesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListDataSourcesOutput) GoString() string {
- return s.String()
- }
- // SetDataSources sets the DataSources field's value.
- func (s *ListDataSourcesOutput) SetDataSources(v []*DataSource) *ListDataSourcesOutput {
- s.DataSources = v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListDataSourcesOutput) SetNextToken(v string) *ListDataSourcesOutput {
- s.NextToken = &v
- return s
- }
- type ListFunctionsInput struct {
- _ struct{} `type:"structure"`
- // The GraphQL API ID.
- //
- // ApiId is a required field
- ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"`
- // The maximum number of results you want the request to return.
- MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"`
- // An identifier that was returned from the previous call to this operation,
- // which can be used to return the next set of items in the list.
- NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
- }
- // String returns the string representation
- func (s ListFunctionsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListFunctionsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListFunctionsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListFunctionsInput"}
- if s.ApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("ApiId"))
- }
- if s.ApiId != nil && len(*s.ApiId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApiId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetApiId sets the ApiId field's value.
- func (s *ListFunctionsInput) SetApiId(v string) *ListFunctionsInput {
- s.ApiId = &v
- return s
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListFunctionsInput) SetMaxResults(v int64) *ListFunctionsInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListFunctionsInput) SetNextToken(v string) *ListFunctionsInput {
- s.NextToken = &v
- return s
- }
- type ListFunctionsOutput struct {
- _ struct{} `type:"structure"`
- // A list of Function objects.
- Functions []*FunctionConfiguration `locationName:"functions" type:"list"`
- // An identifier that was returned from the previous call to this operation,
- // which can be used to return the next set of items in the list.
- NextToken *string `locationName:"nextToken" type:"string"`
- }
- // String returns the string representation
- func (s ListFunctionsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListFunctionsOutput) GoString() string {
- return s.String()
- }
- // SetFunctions sets the Functions field's value.
- func (s *ListFunctionsOutput) SetFunctions(v []*FunctionConfiguration) *ListFunctionsOutput {
- s.Functions = v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListFunctionsOutput) SetNextToken(v string) *ListFunctionsOutput {
- s.NextToken = &v
- return s
- }
- type ListGraphqlApisInput struct {
- _ struct{} `type:"structure"`
- // The maximum number of results you want the request to return.
- MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"`
- // An identifier that was returned from the previous call to this operation,
- // which can be used to return the next set of items in the list.
- NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
- }
- // String returns the string representation
- func (s ListGraphqlApisInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListGraphqlApisInput) GoString() string {
- return s.String()
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListGraphqlApisInput) SetMaxResults(v int64) *ListGraphqlApisInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListGraphqlApisInput) SetNextToken(v string) *ListGraphqlApisInput {
- s.NextToken = &v
- return s
- }
- type ListGraphqlApisOutput struct {
- _ struct{} `type:"structure"`
- // The GraphqlApi objects.
- GraphqlApis []*GraphqlApi `locationName:"graphqlApis" type:"list"`
- // An identifier to be passed in the next request to this operation to return
- // the next set of items in the list.
- NextToken *string `locationName:"nextToken" type:"string"`
- }
- // String returns the string representation
- func (s ListGraphqlApisOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListGraphqlApisOutput) GoString() string {
- return s.String()
- }
- // SetGraphqlApis sets the GraphqlApis field's value.
- func (s *ListGraphqlApisOutput) SetGraphqlApis(v []*GraphqlApi) *ListGraphqlApisOutput {
- s.GraphqlApis = v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListGraphqlApisOutput) SetNextToken(v string) *ListGraphqlApisOutput {
- s.NextToken = &v
- return s
- }
- type ListResolversByFunctionInput struct {
- _ struct{} `type:"structure"`
- // The API ID.
- //
- // ApiId is a required field
- ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"`
- // The Function ID.
- //
- // FunctionId is a required field
- FunctionId *string `location:"uri" locationName:"functionId" type:"string" required:"true"`
- // The maximum number of results you want the request to return.
- MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"`
- // An identifier that was returned from the previous call to this operation,
- // which you can use to return the next set of items in the list.
- NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
- }
- // String returns the string representation
- func (s ListResolversByFunctionInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListResolversByFunctionInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListResolversByFunctionInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListResolversByFunctionInput"}
- if s.ApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("ApiId"))
- }
- if s.ApiId != nil && len(*s.ApiId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApiId", 1))
- }
- if s.FunctionId == nil {
- invalidParams.Add(request.NewErrParamRequired("FunctionId"))
- }
- if s.FunctionId != nil && len(*s.FunctionId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("FunctionId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetApiId sets the ApiId field's value.
- func (s *ListResolversByFunctionInput) SetApiId(v string) *ListResolversByFunctionInput {
- s.ApiId = &v
- return s
- }
- // SetFunctionId sets the FunctionId field's value.
- func (s *ListResolversByFunctionInput) SetFunctionId(v string) *ListResolversByFunctionInput {
- s.FunctionId = &v
- return s
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListResolversByFunctionInput) SetMaxResults(v int64) *ListResolversByFunctionInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListResolversByFunctionInput) SetNextToken(v string) *ListResolversByFunctionInput {
- s.NextToken = &v
- return s
- }
- type ListResolversByFunctionOutput struct {
- _ struct{} `type:"structure"`
- // An identifier that can be used to return the next set of items in the list.
- NextToken *string `locationName:"nextToken" type:"string"`
- // The list of resolvers.
- Resolvers []*Resolver `locationName:"resolvers" type:"list"`
- }
- // String returns the string representation
- func (s ListResolversByFunctionOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListResolversByFunctionOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListResolversByFunctionOutput) SetNextToken(v string) *ListResolversByFunctionOutput {
- s.NextToken = &v
- return s
- }
- // SetResolvers sets the Resolvers field's value.
- func (s *ListResolversByFunctionOutput) SetResolvers(v []*Resolver) *ListResolversByFunctionOutput {
- s.Resolvers = v
- return s
- }
- type ListResolversInput struct {
- _ struct{} `type:"structure"`
- // The API ID.
- //
- // ApiId is a required field
- ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"`
- // The maximum number of results you want the request to return.
- MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"`
- // An identifier that was returned from the previous call to this operation,
- // which can be used to return the next set of items in the list.
- NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
- // The type name.
- //
- // TypeName is a required field
- TypeName *string `location:"uri" locationName:"typeName" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ListResolversInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListResolversInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListResolversInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListResolversInput"}
- if s.ApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("ApiId"))
- }
- if s.ApiId != nil && len(*s.ApiId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApiId", 1))
- }
- if s.TypeName == nil {
- invalidParams.Add(request.NewErrParamRequired("TypeName"))
- }
- if s.TypeName != nil && len(*s.TypeName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("TypeName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetApiId sets the ApiId field's value.
- func (s *ListResolversInput) SetApiId(v string) *ListResolversInput {
- s.ApiId = &v
- return s
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListResolversInput) SetMaxResults(v int64) *ListResolversInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListResolversInput) SetNextToken(v string) *ListResolversInput {
- s.NextToken = &v
- return s
- }
- // SetTypeName sets the TypeName field's value.
- func (s *ListResolversInput) SetTypeName(v string) *ListResolversInput {
- s.TypeName = &v
- return s
- }
- type ListResolversOutput struct {
- _ struct{} `type:"structure"`
- // An identifier to be passed in the next request to this operation to return
- // the next set of items in the list.
- NextToken *string `locationName:"nextToken" type:"string"`
- // The Resolver objects.
- Resolvers []*Resolver `locationName:"resolvers" type:"list"`
- }
- // String returns the string representation
- func (s ListResolversOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListResolversOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListResolversOutput) SetNextToken(v string) *ListResolversOutput {
- s.NextToken = &v
- return s
- }
- // SetResolvers sets the Resolvers field's value.
- func (s *ListResolversOutput) SetResolvers(v []*Resolver) *ListResolversOutput {
- s.Resolvers = v
- return s
- }
- type ListTypesInput struct {
- _ struct{} `type:"structure"`
- // The API ID.
- //
- // ApiId is a required field
- ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"`
- // The type format: SDL or JSON.
- //
- // Format is a required field
- Format *string `location:"querystring" locationName:"format" type:"string" required:"true" enum:"TypeDefinitionFormat"`
- // The maximum number of results you want the request to return.
- MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"`
- // An identifier that was returned from the previous call to this operation,
- // which can be used to return the next set of items in the list.
- NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
- }
- // String returns the string representation
- func (s ListTypesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListTypesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListTypesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListTypesInput"}
- if s.ApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("ApiId"))
- }
- if s.ApiId != nil && len(*s.ApiId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApiId", 1))
- }
- if s.Format == nil {
- invalidParams.Add(request.NewErrParamRequired("Format"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetApiId sets the ApiId field's value.
- func (s *ListTypesInput) SetApiId(v string) *ListTypesInput {
- s.ApiId = &v
- return s
- }
- // SetFormat sets the Format field's value.
- func (s *ListTypesInput) SetFormat(v string) *ListTypesInput {
- s.Format = &v
- return s
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListTypesInput) SetMaxResults(v int64) *ListTypesInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListTypesInput) SetNextToken(v string) *ListTypesInput {
- s.NextToken = &v
- return s
- }
- type ListTypesOutput struct {
- _ struct{} `type:"structure"`
- // An identifier to be passed in the next request to this operation to return
- // the next set of items in the list.
- NextToken *string `locationName:"nextToken" type:"string"`
- // The Type objects.
- Types []*Type `locationName:"types" type:"list"`
- }
- // String returns the string representation
- func (s ListTypesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListTypesOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListTypesOutput) SetNextToken(v string) *ListTypesOutput {
- s.NextToken = &v
- return s
- }
- // SetTypes sets the Types field's value.
- func (s *ListTypesOutput) SetTypes(v []*Type) *ListTypesOutput {
- s.Types = v
- return s
- }
- // The CloudWatch Logs configuration.
- type LogConfig struct {
- _ struct{} `type:"structure"`
- // The service role that AWS AppSync will assume to publish to Amazon CloudWatch
- // logs in your account.
- //
- // CloudWatchLogsRoleArn is a required field
- CloudWatchLogsRoleArn *string `locationName:"cloudWatchLogsRoleArn" type:"string" required:"true"`
- // The field logging level. Values can be NONE, ERROR, or ALL.
- //
- // * NONE: No field-level logs are captured.
- //
- // * ERROR: Logs the following information only for the fields that are in
- // error:
- //
- // The error section in the server response.
- //
- // Field-level errors.
- //
- // The generated request/response functions that got resolved for error fields.
- //
- // * ALL: The following information is logged for all fields in the query:
- //
- // Field-level tracing information.
- //
- // The generated request/response functions that got resolved for each field.
- //
- // FieldLogLevel is a required field
- FieldLogLevel *string `locationName:"fieldLogLevel" type:"string" required:"true" enum:"FieldLogLevel"`
- }
- // String returns the string representation
- func (s LogConfig) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s LogConfig) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *LogConfig) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "LogConfig"}
- if s.CloudWatchLogsRoleArn == nil {
- invalidParams.Add(request.NewErrParamRequired("CloudWatchLogsRoleArn"))
- }
- if s.FieldLogLevel == nil {
- invalidParams.Add(request.NewErrParamRequired("FieldLogLevel"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCloudWatchLogsRoleArn sets the CloudWatchLogsRoleArn field's value.
- func (s *LogConfig) SetCloudWatchLogsRoleArn(v string) *LogConfig {
- s.CloudWatchLogsRoleArn = &v
- return s
- }
- // SetFieldLogLevel sets the FieldLogLevel field's value.
- func (s *LogConfig) SetFieldLogLevel(v string) *LogConfig {
- s.FieldLogLevel = &v
- return s
- }
- // Describes an OpenID Connect configuration.
- type OpenIDConnectConfig struct {
- _ struct{} `type:"structure"`
- // The number of milliseconds a token is valid after being authenticated.
- AuthTTL *int64 `locationName:"authTTL" type:"long"`
- // The client identifier of the Relying party at the OpenID identity provider.
- // This identifier is typically obtained when the Relying party is registered
- // with the OpenID identity provider. You can specify a regular expression so
- // the AWS AppSync can validate against multiple client identifiers at a time.
- ClientId *string `locationName:"clientId" type:"string"`
- // The number of milliseconds a token is valid after being issued to a user.
- IatTTL *int64 `locationName:"iatTTL" type:"long"`
- // The issuer for the OpenID Connect configuration. The issuer returned by discovery
- // must exactly match the value of iss in the ID token.
- //
- // Issuer is a required field
- Issuer *string `locationName:"issuer" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s OpenIDConnectConfig) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s OpenIDConnectConfig) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *OpenIDConnectConfig) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "OpenIDConnectConfig"}
- if s.Issuer == nil {
- invalidParams.Add(request.NewErrParamRequired("Issuer"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAuthTTL sets the AuthTTL field's value.
- func (s *OpenIDConnectConfig) SetAuthTTL(v int64) *OpenIDConnectConfig {
- s.AuthTTL = &v
- return s
- }
- // SetClientId sets the ClientId field's value.
- func (s *OpenIDConnectConfig) SetClientId(v string) *OpenIDConnectConfig {
- s.ClientId = &v
- return s
- }
- // SetIatTTL sets the IatTTL field's value.
- func (s *OpenIDConnectConfig) SetIatTTL(v int64) *OpenIDConnectConfig {
- s.IatTTL = &v
- return s
- }
- // SetIssuer sets the Issuer field's value.
- func (s *OpenIDConnectConfig) SetIssuer(v string) *OpenIDConnectConfig {
- s.Issuer = &v
- return s
- }
- // The pipeline configuration for a resolver of kind PIPELINE.
- type PipelineConfig struct {
- _ struct{} `type:"structure"`
- // A list of Function objects.
- Functions []*string `locationName:"functions" type:"list"`
- }
- // String returns the string representation
- func (s PipelineConfig) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PipelineConfig) GoString() string {
- return s.String()
- }
- // SetFunctions sets the Functions field's value.
- func (s *PipelineConfig) SetFunctions(v []*string) *PipelineConfig {
- s.Functions = v
- return s
- }
- // The Amazon RDS HTTP endpoint configuration.
- type RdsHttpEndpointConfig struct {
- _ struct{} `type:"structure"`
- // AWS Region for RDS HTTP endpoint.
- AwsRegion *string `locationName:"awsRegion" type:"string"`
- // AWS secret store ARN for database credentials.
- AwsSecretStoreArn *string `locationName:"awsSecretStoreArn" type:"string"`
- // Logical database name.
- DatabaseName *string `locationName:"databaseName" type:"string"`
- // Amazon RDS cluster identifier.
- DbClusterIdentifier *string `locationName:"dbClusterIdentifier" type:"string"`
- // Logical schema name.
- Schema *string `locationName:"schema" type:"string"`
- }
- // String returns the string representation
- func (s RdsHttpEndpointConfig) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RdsHttpEndpointConfig) GoString() string {
- return s.String()
- }
- // SetAwsRegion sets the AwsRegion field's value.
- func (s *RdsHttpEndpointConfig) SetAwsRegion(v string) *RdsHttpEndpointConfig {
- s.AwsRegion = &v
- return s
- }
- // SetAwsSecretStoreArn sets the AwsSecretStoreArn field's value.
- func (s *RdsHttpEndpointConfig) SetAwsSecretStoreArn(v string) *RdsHttpEndpointConfig {
- s.AwsSecretStoreArn = &v
- return s
- }
- // SetDatabaseName sets the DatabaseName field's value.
- func (s *RdsHttpEndpointConfig) SetDatabaseName(v string) *RdsHttpEndpointConfig {
- s.DatabaseName = &v
- return s
- }
- // SetDbClusterIdentifier sets the DbClusterIdentifier field's value.
- func (s *RdsHttpEndpointConfig) SetDbClusterIdentifier(v string) *RdsHttpEndpointConfig {
- s.DbClusterIdentifier = &v
- return s
- }
- // SetSchema sets the Schema field's value.
- func (s *RdsHttpEndpointConfig) SetSchema(v string) *RdsHttpEndpointConfig {
- s.Schema = &v
- return s
- }
- // Describes a relational database data source configuration.
- type RelationalDatabaseDataSourceConfig struct {
- _ struct{} `type:"structure"`
- // Amazon RDS HTTP endpoint settings.
- RdsHttpEndpointConfig *RdsHttpEndpointConfig `locationName:"rdsHttpEndpointConfig" type:"structure"`
- // Source type for the relational database.
- //
- // * RDS_HTTP_ENDPOINT: The relational database source type is an Amazon
- // RDS HTTP endpoint.
- RelationalDatabaseSourceType *string `locationName:"relationalDatabaseSourceType" type:"string" enum:"RelationalDatabaseSourceType"`
- }
- // String returns the string representation
- func (s RelationalDatabaseDataSourceConfig) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RelationalDatabaseDataSourceConfig) GoString() string {
- return s.String()
- }
- // SetRdsHttpEndpointConfig sets the RdsHttpEndpointConfig field's value.
- func (s *RelationalDatabaseDataSourceConfig) SetRdsHttpEndpointConfig(v *RdsHttpEndpointConfig) *RelationalDatabaseDataSourceConfig {
- s.RdsHttpEndpointConfig = v
- return s
- }
- // SetRelationalDatabaseSourceType sets the RelationalDatabaseSourceType field's value.
- func (s *RelationalDatabaseDataSourceConfig) SetRelationalDatabaseSourceType(v string) *RelationalDatabaseDataSourceConfig {
- s.RelationalDatabaseSourceType = &v
- return s
- }
- // Describes a resolver.
- type Resolver struct {
- _ struct{} `type:"structure"`
- // The resolver data source name.
- DataSourceName *string `locationName:"dataSourceName" type:"string"`
- // The resolver field name.
- FieldName *string `locationName:"fieldName" type:"string"`
- // The resolver type.
- //
- // * UNIT: A UNIT resolver type. A UNIT resolver is the default resolver
- // type. A UNIT resolver enables you to execute a GraphQL query against a
- // single data source.
- //
- // * PIPELINE: A PIPELINE resolver type. A PIPELINE resolver enables you
- // to execute a series of Function in a serial manner. You can use a pipeline
- // resolver to execute a GraphQL query against multiple data sources.
- Kind *string `locationName:"kind" type:"string" enum:"ResolverKind"`
- // The PipelineConfig.
- PipelineConfig *PipelineConfig `locationName:"pipelineConfig" type:"structure"`
- // The request mapping template.
- RequestMappingTemplate *string `locationName:"requestMappingTemplate" min:"1" type:"string"`
- // The resolver ARN.
- ResolverArn *string `locationName:"resolverArn" type:"string"`
- // The response mapping template.
- ResponseMappingTemplate *string `locationName:"responseMappingTemplate" min:"1" type:"string"`
- // The resolver type name.
- TypeName *string `locationName:"typeName" type:"string"`
- }
- // String returns the string representation
- func (s Resolver) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Resolver) GoString() string {
- return s.String()
- }
- // SetDataSourceName sets the DataSourceName field's value.
- func (s *Resolver) SetDataSourceName(v string) *Resolver {
- s.DataSourceName = &v
- return s
- }
- // SetFieldName sets the FieldName field's value.
- func (s *Resolver) SetFieldName(v string) *Resolver {
- s.FieldName = &v
- return s
- }
- // SetKind sets the Kind field's value.
- func (s *Resolver) SetKind(v string) *Resolver {
- s.Kind = &v
- return s
- }
- // SetPipelineConfig sets the PipelineConfig field's value.
- func (s *Resolver) SetPipelineConfig(v *PipelineConfig) *Resolver {
- s.PipelineConfig = v
- return s
- }
- // SetRequestMappingTemplate sets the RequestMappingTemplate field's value.
- func (s *Resolver) SetRequestMappingTemplate(v string) *Resolver {
- s.RequestMappingTemplate = &v
- return s
- }
- // SetResolverArn sets the ResolverArn field's value.
- func (s *Resolver) SetResolverArn(v string) *Resolver {
- s.ResolverArn = &v
- return s
- }
- // SetResponseMappingTemplate sets the ResponseMappingTemplate field's value.
- func (s *Resolver) SetResponseMappingTemplate(v string) *Resolver {
- s.ResponseMappingTemplate = &v
- return s
- }
- // SetTypeName sets the TypeName field's value.
- func (s *Resolver) SetTypeName(v string) *Resolver {
- s.TypeName = &v
- return s
- }
- type StartSchemaCreationInput struct {
- _ struct{} `type:"structure"`
- // The API ID.
- //
- // ApiId is a required field
- ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"`
- // The schema definition, in GraphQL schema language format.
- //
- // Definition is automatically base64 encoded/decoded by the SDK.
- //
- // Definition is a required field
- Definition []byte `locationName:"definition" type:"blob" required:"true"`
- }
- // String returns the string representation
- func (s StartSchemaCreationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StartSchemaCreationInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *StartSchemaCreationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "StartSchemaCreationInput"}
- if s.ApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("ApiId"))
- }
- if s.ApiId != nil && len(*s.ApiId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApiId", 1))
- }
- if s.Definition == nil {
- invalidParams.Add(request.NewErrParamRequired("Definition"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetApiId sets the ApiId field's value.
- func (s *StartSchemaCreationInput) SetApiId(v string) *StartSchemaCreationInput {
- s.ApiId = &v
- return s
- }
- // SetDefinition sets the Definition field's value.
- func (s *StartSchemaCreationInput) SetDefinition(v []byte) *StartSchemaCreationInput {
- s.Definition = v
- return s
- }
- type StartSchemaCreationOutput struct {
- _ struct{} `type:"structure"`
- // The current state of the schema (PROCESSING, ACTIVE, or DELETING). When the
- // schema is in the ACTIVE state, you can add data.
- Status *string `locationName:"status" type:"string" enum:"SchemaStatus"`
- }
- // String returns the string representation
- func (s StartSchemaCreationOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StartSchemaCreationOutput) GoString() string {
- return s.String()
- }
- // SetStatus sets the Status field's value.
- func (s *StartSchemaCreationOutput) SetStatus(v string) *StartSchemaCreationOutput {
- s.Status = &v
- return s
- }
- // Describes a type.
- type Type struct {
- _ struct{} `type:"structure"`
- // The type ARN.
- Arn *string `locationName:"arn" type:"string"`
- // The type definition.
- Definition *string `locationName:"definition" type:"string"`
- // The type description.
- Description *string `locationName:"description" type:"string"`
- // The type format: SDL or JSON.
- Format *string `locationName:"format" type:"string" enum:"TypeDefinitionFormat"`
- // The type name.
- Name *string `locationName:"name" type:"string"`
- }
- // String returns the string representation
- func (s Type) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Type) GoString() string {
- return s.String()
- }
- // SetArn sets the Arn field's value.
- func (s *Type) SetArn(v string) *Type {
- s.Arn = &v
- return s
- }
- // SetDefinition sets the Definition field's value.
- func (s *Type) SetDefinition(v string) *Type {
- s.Definition = &v
- return s
- }
- // SetDescription sets the Description field's value.
- func (s *Type) SetDescription(v string) *Type {
- s.Description = &v
- return s
- }
- // SetFormat sets the Format field's value.
- func (s *Type) SetFormat(v string) *Type {
- s.Format = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *Type) SetName(v string) *Type {
- s.Name = &v
- return s
- }
- type UpdateApiKeyInput struct {
- _ struct{} `type:"structure"`
- // The ID for the GraphQL API.
- //
- // ApiId is a required field
- ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"`
- // A description of the purpose of the API key.
- Description *string `locationName:"description" type:"string"`
- // The time from update time after which the API key expires. The date is represented
- // as seconds since the epoch. For more information, see .
- Expires *int64 `locationName:"expires" type:"long"`
- // The API key ID.
- //
- // Id is a required field
- Id *string `location:"uri" locationName:"id" type:"string" required:"true"`
- }
- // 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.ApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("ApiId"))
- }
- if s.ApiId != nil && len(*s.ApiId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApiId", 1))
- }
- if s.Id == nil {
- invalidParams.Add(request.NewErrParamRequired("Id"))
- }
- if s.Id != nil && len(*s.Id) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Id", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetApiId sets the ApiId field's value.
- func (s *UpdateApiKeyInput) SetApiId(v string) *UpdateApiKeyInput {
- s.ApiId = &v
- return s
- }
- // SetDescription sets the Description field's value.
- func (s *UpdateApiKeyInput) SetDescription(v string) *UpdateApiKeyInput {
- s.Description = &v
- return s
- }
- // SetExpires sets the Expires field's value.
- func (s *UpdateApiKeyInput) SetExpires(v int64) *UpdateApiKeyInput {
- s.Expires = &v
- return s
- }
- // SetId sets the Id field's value.
- func (s *UpdateApiKeyInput) SetId(v string) *UpdateApiKeyInput {
- s.Id = &v
- return s
- }
- type UpdateApiKeyOutput struct {
- _ struct{} `type:"structure"`
- // The API key.
- ApiKey *ApiKey `locationName:"apiKey" type:"structure"`
- }
- // String returns the string representation
- func (s UpdateApiKeyOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateApiKeyOutput) GoString() string {
- return s.String()
- }
- // SetApiKey sets the ApiKey field's value.
- func (s *UpdateApiKeyOutput) SetApiKey(v *ApiKey) *UpdateApiKeyOutput {
- s.ApiKey = v
- return s
- }
- type UpdateDataSourceInput struct {
- _ struct{} `type:"structure"`
- // The API ID.
- //
- // ApiId is a required field
- ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"`
- // The new description for the data source.
- Description *string `locationName:"description" type:"string"`
- // The new Amazon DynamoDB configuration.
- DynamodbConfig *DynamodbDataSourceConfig `locationName:"dynamodbConfig" type:"structure"`
- // The new Elasticsearch Service configuration.
- ElasticsearchConfig *ElasticsearchDataSourceConfig `locationName:"elasticsearchConfig" type:"structure"`
- // The new HTTP endpoint configuration.
- HttpConfig *HttpDataSourceConfig `locationName:"httpConfig" type:"structure"`
- // The new AWS Lambda configuration.
- LambdaConfig *LambdaDataSourceConfig `locationName:"lambdaConfig" type:"structure"`
- // The new name for the data source.
- //
- // Name is a required field
- Name *string `location:"uri" locationName:"name" type:"string" required:"true"`
- // The new relational database configuration.
- RelationalDatabaseConfig *RelationalDatabaseDataSourceConfig `locationName:"relationalDatabaseConfig" type:"structure"`
- // The new service role ARN for the data source.
- ServiceRoleArn *string `locationName:"serviceRoleArn" type:"string"`
- // The new data source type.
- //
- // Type is a required field
- Type *string `locationName:"type" type:"string" required:"true" enum:"DataSourceType"`
- }
- // String returns the string representation
- func (s UpdateDataSourceInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateDataSourceInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateDataSourceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateDataSourceInput"}
- if s.ApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("ApiId"))
- }
- if s.ApiId != nil && len(*s.ApiId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApiId", 1))
- }
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if s.Type == nil {
- invalidParams.Add(request.NewErrParamRequired("Type"))
- }
- if s.DynamodbConfig != nil {
- if err := s.DynamodbConfig.Validate(); err != nil {
- invalidParams.AddNested("DynamodbConfig", err.(request.ErrInvalidParams))
- }
- }
- if s.ElasticsearchConfig != nil {
- if err := s.ElasticsearchConfig.Validate(); err != nil {
- invalidParams.AddNested("ElasticsearchConfig", err.(request.ErrInvalidParams))
- }
- }
- if s.HttpConfig != nil {
- if err := s.HttpConfig.Validate(); err != nil {
- invalidParams.AddNested("HttpConfig", err.(request.ErrInvalidParams))
- }
- }
- if s.LambdaConfig != nil {
- if err := s.LambdaConfig.Validate(); err != nil {
- invalidParams.AddNested("LambdaConfig", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetApiId sets the ApiId field's value.
- func (s *UpdateDataSourceInput) SetApiId(v string) *UpdateDataSourceInput {
- s.ApiId = &v
- return s
- }
- // SetDescription sets the Description field's value.
- func (s *UpdateDataSourceInput) SetDescription(v string) *UpdateDataSourceInput {
- s.Description = &v
- return s
- }
- // SetDynamodbConfig sets the DynamodbConfig field's value.
- func (s *UpdateDataSourceInput) SetDynamodbConfig(v *DynamodbDataSourceConfig) *UpdateDataSourceInput {
- s.DynamodbConfig = v
- return s
- }
- // SetElasticsearchConfig sets the ElasticsearchConfig field's value.
- func (s *UpdateDataSourceInput) SetElasticsearchConfig(v *ElasticsearchDataSourceConfig) *UpdateDataSourceInput {
- s.ElasticsearchConfig = v
- return s
- }
- // SetHttpConfig sets the HttpConfig field's value.
- func (s *UpdateDataSourceInput) SetHttpConfig(v *HttpDataSourceConfig) *UpdateDataSourceInput {
- s.HttpConfig = v
- return s
- }
- // SetLambdaConfig sets the LambdaConfig field's value.
- func (s *UpdateDataSourceInput) SetLambdaConfig(v *LambdaDataSourceConfig) *UpdateDataSourceInput {
- s.LambdaConfig = v
- return s
- }
- // SetName sets the Name field's value.
- func (s *UpdateDataSourceInput) SetName(v string) *UpdateDataSourceInput {
- s.Name = &v
- return s
- }
- // SetRelationalDatabaseConfig sets the RelationalDatabaseConfig field's value.
- func (s *UpdateDataSourceInput) SetRelationalDatabaseConfig(v *RelationalDatabaseDataSourceConfig) *UpdateDataSourceInput {
- s.RelationalDatabaseConfig = v
- return s
- }
- // SetServiceRoleArn sets the ServiceRoleArn field's value.
- func (s *UpdateDataSourceInput) SetServiceRoleArn(v string) *UpdateDataSourceInput {
- s.ServiceRoleArn = &v
- return s
- }
- // SetType sets the Type field's value.
- func (s *UpdateDataSourceInput) SetType(v string) *UpdateDataSourceInput {
- s.Type = &v
- return s
- }
- type UpdateDataSourceOutput struct {
- _ struct{} `type:"structure"`
- // The updated DataSource object.
- DataSource *DataSource `locationName:"dataSource" type:"structure"`
- }
- // String returns the string representation
- func (s UpdateDataSourceOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateDataSourceOutput) GoString() string {
- return s.String()
- }
- // SetDataSource sets the DataSource field's value.
- func (s *UpdateDataSourceOutput) SetDataSource(v *DataSource) *UpdateDataSourceOutput {
- s.DataSource = v
- return s
- }
- type UpdateFunctionInput struct {
- _ struct{} `type:"structure"`
- // The GraphQL API ID.
- //
- // ApiId is a required field
- ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"`
- // The FunctionDataSource name.
- //
- // DataSourceName is a required field
- DataSourceName *string `locationName:"dataSourceName" type:"string" required:"true"`
- // The Function description.
- Description *string `locationName:"description" type:"string"`
- // The function ID.
- //
- // FunctionId is a required field
- FunctionId *string `location:"uri" locationName:"functionId" type:"string" required:"true"`
- // The version of the request mapping template. Currently the supported value
- // is 2018-05-29.
- //
- // FunctionVersion is a required field
- FunctionVersion *string `locationName:"functionVersion" type:"string" required:"true"`
- // The Function name.
- //
- // Name is a required field
- Name *string `locationName:"name" type:"string" required:"true"`
- // The Function request mapping template. Functions support only the 2018-05-29
- // version of the request mapping template.
- //
- // RequestMappingTemplate is a required field
- RequestMappingTemplate *string `locationName:"requestMappingTemplate" min:"1" type:"string" required:"true"`
- // The Function request mapping template.
- ResponseMappingTemplate *string `locationName:"responseMappingTemplate" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s UpdateFunctionInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateFunctionInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateFunctionInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateFunctionInput"}
- if s.ApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("ApiId"))
- }
- if s.ApiId != nil && len(*s.ApiId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApiId", 1))
- }
- if s.DataSourceName == nil {
- invalidParams.Add(request.NewErrParamRequired("DataSourceName"))
- }
- if s.FunctionId == nil {
- invalidParams.Add(request.NewErrParamRequired("FunctionId"))
- }
- if s.FunctionId != nil && len(*s.FunctionId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("FunctionId", 1))
- }
- if s.FunctionVersion == nil {
- invalidParams.Add(request.NewErrParamRequired("FunctionVersion"))
- }
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.RequestMappingTemplate == nil {
- invalidParams.Add(request.NewErrParamRequired("RequestMappingTemplate"))
- }
- if s.RequestMappingTemplate != nil && len(*s.RequestMappingTemplate) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RequestMappingTemplate", 1))
- }
- if s.ResponseMappingTemplate != nil && len(*s.ResponseMappingTemplate) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ResponseMappingTemplate", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetApiId sets the ApiId field's value.
- func (s *UpdateFunctionInput) SetApiId(v string) *UpdateFunctionInput {
- s.ApiId = &v
- return s
- }
- // SetDataSourceName sets the DataSourceName field's value.
- func (s *UpdateFunctionInput) SetDataSourceName(v string) *UpdateFunctionInput {
- s.DataSourceName = &v
- return s
- }
- // SetDescription sets the Description field's value.
- func (s *UpdateFunctionInput) SetDescription(v string) *UpdateFunctionInput {
- s.Description = &v
- return s
- }
- // SetFunctionId sets the FunctionId field's value.
- func (s *UpdateFunctionInput) SetFunctionId(v string) *UpdateFunctionInput {
- s.FunctionId = &v
- return s
- }
- // SetFunctionVersion sets the FunctionVersion field's value.
- func (s *UpdateFunctionInput) SetFunctionVersion(v string) *UpdateFunctionInput {
- s.FunctionVersion = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *UpdateFunctionInput) SetName(v string) *UpdateFunctionInput {
- s.Name = &v
- return s
- }
- // SetRequestMappingTemplate sets the RequestMappingTemplate field's value.
- func (s *UpdateFunctionInput) SetRequestMappingTemplate(v string) *UpdateFunctionInput {
- s.RequestMappingTemplate = &v
- return s
- }
- // SetResponseMappingTemplate sets the ResponseMappingTemplate field's value.
- func (s *UpdateFunctionInput) SetResponseMappingTemplate(v string) *UpdateFunctionInput {
- s.ResponseMappingTemplate = &v
- return s
- }
- type UpdateFunctionOutput struct {
- _ struct{} `type:"structure"`
- // The Function object.
- FunctionConfiguration *FunctionConfiguration `locationName:"functionConfiguration" type:"structure"`
- }
- // String returns the string representation
- func (s UpdateFunctionOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateFunctionOutput) GoString() string {
- return s.String()
- }
- // SetFunctionConfiguration sets the FunctionConfiguration field's value.
- func (s *UpdateFunctionOutput) SetFunctionConfiguration(v *FunctionConfiguration) *UpdateFunctionOutput {
- s.FunctionConfiguration = v
- return s
- }
- type UpdateGraphqlApiInput struct {
- _ struct{} `type:"structure"`
- // The API ID.
- //
- // ApiId is a required field
- ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"`
- // The new authentication type for the GraphqlApi object.
- AuthenticationType *string `locationName:"authenticationType" type:"string" enum:"AuthenticationType"`
- // The Amazon CloudWatch Logs configuration for the GraphqlApi object.
- LogConfig *LogConfig `locationName:"logConfig" type:"structure"`
- // The new name for the GraphqlApi object.
- //
- // Name is a required field
- Name *string `locationName:"name" type:"string" required:"true"`
- // The OpenID Connect configuration for the GraphqlApi object.
- OpenIDConnectConfig *OpenIDConnectConfig `locationName:"openIDConnectConfig" type:"structure"`
- // The new Amazon Cognito user pool configuration for the GraphqlApi object.
- UserPoolConfig *UserPoolConfig `locationName:"userPoolConfig" type:"structure"`
- }
- // String returns the string representation
- func (s UpdateGraphqlApiInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateGraphqlApiInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateGraphqlApiInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateGraphqlApiInput"}
- if s.ApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("ApiId"))
- }
- if s.ApiId != nil && len(*s.ApiId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApiId", 1))
- }
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.LogConfig != nil {
- if err := s.LogConfig.Validate(); err != nil {
- invalidParams.AddNested("LogConfig", err.(request.ErrInvalidParams))
- }
- }
- if s.OpenIDConnectConfig != nil {
- if err := s.OpenIDConnectConfig.Validate(); err != nil {
- invalidParams.AddNested("OpenIDConnectConfig", err.(request.ErrInvalidParams))
- }
- }
- if s.UserPoolConfig != nil {
- if err := s.UserPoolConfig.Validate(); err != nil {
- invalidParams.AddNested("UserPoolConfig", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetApiId sets the ApiId field's value.
- func (s *UpdateGraphqlApiInput) SetApiId(v string) *UpdateGraphqlApiInput {
- s.ApiId = &v
- return s
- }
- // SetAuthenticationType sets the AuthenticationType field's value.
- func (s *UpdateGraphqlApiInput) SetAuthenticationType(v string) *UpdateGraphqlApiInput {
- s.AuthenticationType = &v
- return s
- }
- // SetLogConfig sets the LogConfig field's value.
- func (s *UpdateGraphqlApiInput) SetLogConfig(v *LogConfig) *UpdateGraphqlApiInput {
- s.LogConfig = v
- return s
- }
- // SetName sets the Name field's value.
- func (s *UpdateGraphqlApiInput) SetName(v string) *UpdateGraphqlApiInput {
- s.Name = &v
- return s
- }
- // SetOpenIDConnectConfig sets the OpenIDConnectConfig field's value.
- func (s *UpdateGraphqlApiInput) SetOpenIDConnectConfig(v *OpenIDConnectConfig) *UpdateGraphqlApiInput {
- s.OpenIDConnectConfig = v
- return s
- }
- // SetUserPoolConfig sets the UserPoolConfig field's value.
- func (s *UpdateGraphqlApiInput) SetUserPoolConfig(v *UserPoolConfig) *UpdateGraphqlApiInput {
- s.UserPoolConfig = v
- return s
- }
- type UpdateGraphqlApiOutput struct {
- _ struct{} `type:"structure"`
- // The updated GraphqlApi object.
- GraphqlApi *GraphqlApi `locationName:"graphqlApi" type:"structure"`
- }
- // String returns the string representation
- func (s UpdateGraphqlApiOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateGraphqlApiOutput) GoString() string {
- return s.String()
- }
- // SetGraphqlApi sets the GraphqlApi field's value.
- func (s *UpdateGraphqlApiOutput) SetGraphqlApi(v *GraphqlApi) *UpdateGraphqlApiOutput {
- s.GraphqlApi = v
- return s
- }
- type UpdateResolverInput struct {
- _ struct{} `type:"structure"`
- // The API ID.
- //
- // ApiId is a required field
- ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"`
- // The new data source name.
- DataSourceName *string `locationName:"dataSourceName" type:"string"`
- // The new field name.
- //
- // FieldName is a required field
- FieldName *string `location:"uri" locationName:"fieldName" type:"string" required:"true"`
- // The resolver type.
- //
- // * UNIT: A UNIT resolver type. A UNIT resolver is the default resolver
- // type. A UNIT resolver enables you to execute a GraphQL query against a
- // single data source.
- //
- // * PIPELINE: A PIPELINE resolver type. A PIPELINE resolver enables you
- // to execute a series of Function in a serial manner. You can use a pipeline
- // resolver to execute a GraphQL query against multiple data sources.
- Kind *string `locationName:"kind" type:"string" enum:"ResolverKind"`
- // The PipelineConfig.
- PipelineConfig *PipelineConfig `locationName:"pipelineConfig" type:"structure"`
- // The new request mapping template.
- //
- // RequestMappingTemplate is a required field
- RequestMappingTemplate *string `locationName:"requestMappingTemplate" min:"1" type:"string" required:"true"`
- // The new response mapping template.
- ResponseMappingTemplate *string `locationName:"responseMappingTemplate" min:"1" type:"string"`
- // The new type name.
- //
- // TypeName is a required field
- TypeName *string `location:"uri" locationName:"typeName" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s UpdateResolverInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateResolverInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateResolverInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateResolverInput"}
- if s.ApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("ApiId"))
- }
- if s.ApiId != nil && len(*s.ApiId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApiId", 1))
- }
- if s.FieldName == nil {
- invalidParams.Add(request.NewErrParamRequired("FieldName"))
- }
- if s.FieldName != nil && len(*s.FieldName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("FieldName", 1))
- }
- if s.RequestMappingTemplate == nil {
- invalidParams.Add(request.NewErrParamRequired("RequestMappingTemplate"))
- }
- if s.RequestMappingTemplate != nil && len(*s.RequestMappingTemplate) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RequestMappingTemplate", 1))
- }
- if s.ResponseMappingTemplate != nil && len(*s.ResponseMappingTemplate) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ResponseMappingTemplate", 1))
- }
- if s.TypeName == nil {
- invalidParams.Add(request.NewErrParamRequired("TypeName"))
- }
- if s.TypeName != nil && len(*s.TypeName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("TypeName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetApiId sets the ApiId field's value.
- func (s *UpdateResolverInput) SetApiId(v string) *UpdateResolverInput {
- s.ApiId = &v
- return s
- }
- // SetDataSourceName sets the DataSourceName field's value.
- func (s *UpdateResolverInput) SetDataSourceName(v string) *UpdateResolverInput {
- s.DataSourceName = &v
- return s
- }
- // SetFieldName sets the FieldName field's value.
- func (s *UpdateResolverInput) SetFieldName(v string) *UpdateResolverInput {
- s.FieldName = &v
- return s
- }
- // SetKind sets the Kind field's value.
- func (s *UpdateResolverInput) SetKind(v string) *UpdateResolverInput {
- s.Kind = &v
- return s
- }
- // SetPipelineConfig sets the PipelineConfig field's value.
- func (s *UpdateResolverInput) SetPipelineConfig(v *PipelineConfig) *UpdateResolverInput {
- s.PipelineConfig = v
- return s
- }
- // SetRequestMappingTemplate sets the RequestMappingTemplate field's value.
- func (s *UpdateResolverInput) SetRequestMappingTemplate(v string) *UpdateResolverInput {
- s.RequestMappingTemplate = &v
- return s
- }
- // SetResponseMappingTemplate sets the ResponseMappingTemplate field's value.
- func (s *UpdateResolverInput) SetResponseMappingTemplate(v string) *UpdateResolverInput {
- s.ResponseMappingTemplate = &v
- return s
- }
- // SetTypeName sets the TypeName field's value.
- func (s *UpdateResolverInput) SetTypeName(v string) *UpdateResolverInput {
- s.TypeName = &v
- return s
- }
- type UpdateResolverOutput struct {
- _ struct{} `type:"structure"`
- // The updated Resolver object.
- Resolver *Resolver `locationName:"resolver" type:"structure"`
- }
- // String returns the string representation
- func (s UpdateResolverOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateResolverOutput) GoString() string {
- return s.String()
- }
- // SetResolver sets the Resolver field's value.
- func (s *UpdateResolverOutput) SetResolver(v *Resolver) *UpdateResolverOutput {
- s.Resolver = v
- return s
- }
- type UpdateTypeInput struct {
- _ struct{} `type:"structure"`
- // The API ID.
- //
- // ApiId is a required field
- ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"`
- // The new definition.
- Definition *string `locationName:"definition" type:"string"`
- // The new type format: SDL or JSON.
- //
- // Format is a required field
- Format *string `locationName:"format" type:"string" required:"true" enum:"TypeDefinitionFormat"`
- // The new type name.
- //
- // TypeName is a required field
- TypeName *string `location:"uri" locationName:"typeName" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s UpdateTypeInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateTypeInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateTypeInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateTypeInput"}
- if s.ApiId == nil {
- invalidParams.Add(request.NewErrParamRequired("ApiId"))
- }
- if s.ApiId != nil && len(*s.ApiId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApiId", 1))
- }
- if s.Format == nil {
- invalidParams.Add(request.NewErrParamRequired("Format"))
- }
- if s.TypeName == nil {
- invalidParams.Add(request.NewErrParamRequired("TypeName"))
- }
- if s.TypeName != nil && len(*s.TypeName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("TypeName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetApiId sets the ApiId field's value.
- func (s *UpdateTypeInput) SetApiId(v string) *UpdateTypeInput {
- s.ApiId = &v
- return s
- }
- // SetDefinition sets the Definition field's value.
- func (s *UpdateTypeInput) SetDefinition(v string) *UpdateTypeInput {
- s.Definition = &v
- return s
- }
- // SetFormat sets the Format field's value.
- func (s *UpdateTypeInput) SetFormat(v string) *UpdateTypeInput {
- s.Format = &v
- return s
- }
- // SetTypeName sets the TypeName field's value.
- func (s *UpdateTypeInput) SetTypeName(v string) *UpdateTypeInput {
- s.TypeName = &v
- return s
- }
- type UpdateTypeOutput struct {
- _ struct{} `type:"structure"`
- // The updated Type object.
- Type *Type `locationName:"type" type:"structure"`
- }
- // String returns the string representation
- func (s UpdateTypeOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateTypeOutput) GoString() string {
- return s.String()
- }
- // SetType sets the Type field's value.
- func (s *UpdateTypeOutput) SetType(v *Type) *UpdateTypeOutput {
- s.Type = v
- return s
- }
- // Describes an Amazon Cognito user pool configuration.
- type UserPoolConfig struct {
- _ struct{} `type:"structure"`
- // A regular expression for validating the incoming Amazon Cognito user pool
- // app client ID.
- AppIdClientRegex *string `locationName:"appIdClientRegex" type:"string"`
- // The AWS Region in which the user pool was created.
- //
- // AwsRegion is a required field
- AwsRegion *string `locationName:"awsRegion" type:"string" required:"true"`
- // The action that you want your GraphQL API to take when a request that uses
- // Amazon Cognito user pool authentication doesn't match the Amazon Cognito
- // user pool configuration.
- //
- // DefaultAction is a required field
- DefaultAction *string `locationName:"defaultAction" type:"string" required:"true" enum:"DefaultAction"`
- // The user pool ID.
- //
- // UserPoolId is a required field
- UserPoolId *string `locationName:"userPoolId" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s UserPoolConfig) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UserPoolConfig) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UserPoolConfig) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UserPoolConfig"}
- if s.AwsRegion == nil {
- invalidParams.Add(request.NewErrParamRequired("AwsRegion"))
- }
- if s.DefaultAction == nil {
- invalidParams.Add(request.NewErrParamRequired("DefaultAction"))
- }
- if s.UserPoolId == nil {
- invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAppIdClientRegex sets the AppIdClientRegex field's value.
- func (s *UserPoolConfig) SetAppIdClientRegex(v string) *UserPoolConfig {
- s.AppIdClientRegex = &v
- return s
- }
- // SetAwsRegion sets the AwsRegion field's value.
- func (s *UserPoolConfig) SetAwsRegion(v string) *UserPoolConfig {
- s.AwsRegion = &v
- return s
- }
- // SetDefaultAction sets the DefaultAction field's value.
- func (s *UserPoolConfig) SetDefaultAction(v string) *UserPoolConfig {
- s.DefaultAction = &v
- return s
- }
- // SetUserPoolId sets the UserPoolId field's value.
- func (s *UserPoolConfig) SetUserPoolId(v string) *UserPoolConfig {
- s.UserPoolId = &v
- return s
- }
- const (
- // AuthenticationTypeApiKey is a AuthenticationType enum value
- AuthenticationTypeApiKey = "API_KEY"
- // AuthenticationTypeAwsIam is a AuthenticationType enum value
- AuthenticationTypeAwsIam = "AWS_IAM"
- // AuthenticationTypeAmazonCognitoUserPools is a AuthenticationType enum value
- AuthenticationTypeAmazonCognitoUserPools = "AMAZON_COGNITO_USER_POOLS"
- // AuthenticationTypeOpenidConnect is a AuthenticationType enum value
- AuthenticationTypeOpenidConnect = "OPENID_CONNECT"
- )
- const (
- // AuthorizationTypeAwsIam is a AuthorizationType enum value
- AuthorizationTypeAwsIam = "AWS_IAM"
- )
- const (
- // DataSourceTypeAwsLambda is a DataSourceType enum value
- DataSourceTypeAwsLambda = "AWS_LAMBDA"
- // DataSourceTypeAmazonDynamodb is a DataSourceType enum value
- DataSourceTypeAmazonDynamodb = "AMAZON_DYNAMODB"
- // DataSourceTypeAmazonElasticsearch is a DataSourceType enum value
- DataSourceTypeAmazonElasticsearch = "AMAZON_ELASTICSEARCH"
- // DataSourceTypeNone is a DataSourceType enum value
- DataSourceTypeNone = "NONE"
- // DataSourceTypeHttp is a DataSourceType enum value
- DataSourceTypeHttp = "HTTP"
- // DataSourceTypeRelationalDatabase is a DataSourceType enum value
- DataSourceTypeRelationalDatabase = "RELATIONAL_DATABASE"
- )
- const (
- // DefaultActionAllow is a DefaultAction enum value
- DefaultActionAllow = "ALLOW"
- // DefaultActionDeny is a DefaultAction enum value
- DefaultActionDeny = "DENY"
- )
- const (
- // FieldLogLevelNone is a FieldLogLevel enum value
- FieldLogLevelNone = "NONE"
- // FieldLogLevelError is a FieldLogLevel enum value
- FieldLogLevelError = "ERROR"
- // FieldLogLevelAll is a FieldLogLevel enum value
- FieldLogLevelAll = "ALL"
- )
- const (
- // OutputTypeSdl is a OutputType enum value
- OutputTypeSdl = "SDL"
- // OutputTypeJson is a OutputType enum value
- OutputTypeJson = "JSON"
- )
- const (
- // RelationalDatabaseSourceTypeRdsHttpEndpoint is a RelationalDatabaseSourceType enum value
- RelationalDatabaseSourceTypeRdsHttpEndpoint = "RDS_HTTP_ENDPOINT"
- )
- const (
- // ResolverKindUnit is a ResolverKind enum value
- ResolverKindUnit = "UNIT"
- // ResolverKindPipeline is a ResolverKind enum value
- ResolverKindPipeline = "PIPELINE"
- )
- const (
- // SchemaStatusProcessing is a SchemaStatus enum value
- SchemaStatusProcessing = "PROCESSING"
- // SchemaStatusActive is a SchemaStatus enum value
- SchemaStatusActive = "ACTIVE"
- // SchemaStatusDeleting is a SchemaStatus enum value
- SchemaStatusDeleting = "DELETING"
- )
- const (
- // TypeDefinitionFormatSdl is a TypeDefinitionFormat enum value
- TypeDefinitionFormatSdl = "SDL"
- // TypeDefinitionFormatJson is a TypeDefinitionFormat enum value
- TypeDefinitionFormatJson = "JSON"
- )
|