appsync.d.ts 129 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020
  1. import {Request} from '../lib/request';
  2. import {Response} from '../lib/response';
  3. import {AWSError} from '../lib/error';
  4. import {Service} from '../lib/service';
  5. import {ServiceConfigurationOptions} from '../lib/service';
  6. import {ConfigBase as Config} from '../lib/config-base';
  7. interface Blob {}
  8. declare class AppSync extends Service {
  9. /**
  10. * Constructs a service object. This object has one method for each API operation.
  11. */
  12. constructor(options?: AppSync.Types.ClientConfiguration)
  13. config: Config & AppSync.Types.ClientConfiguration;
  14. /**
  15. * Maps an endpoint to your custom domain.
  16. */
  17. associateApi(params: AppSync.Types.AssociateApiRequest, callback?: (err: AWSError, data: AppSync.Types.AssociateApiResponse) => void): Request<AppSync.Types.AssociateApiResponse, AWSError>;
  18. /**
  19. * Maps an endpoint to your custom domain.
  20. */
  21. associateApi(callback?: (err: AWSError, data: AppSync.Types.AssociateApiResponse) => void): Request<AppSync.Types.AssociateApiResponse, AWSError>;
  22. /**
  23. * Creates an association between a Merged API and source API using the source API's identifier.
  24. */
  25. associateMergedGraphqlApi(params: AppSync.Types.AssociateMergedGraphqlApiRequest, callback?: (err: AWSError, data: AppSync.Types.AssociateMergedGraphqlApiResponse) => void): Request<AppSync.Types.AssociateMergedGraphqlApiResponse, AWSError>;
  26. /**
  27. * Creates an association between a Merged API and source API using the source API's identifier.
  28. */
  29. associateMergedGraphqlApi(callback?: (err: AWSError, data: AppSync.Types.AssociateMergedGraphqlApiResponse) => void): Request<AppSync.Types.AssociateMergedGraphqlApiResponse, AWSError>;
  30. /**
  31. * Creates an association between a Merged API and source API using the Merged API's identifier.
  32. */
  33. associateSourceGraphqlApi(params: AppSync.Types.AssociateSourceGraphqlApiRequest, callback?: (err: AWSError, data: AppSync.Types.AssociateSourceGraphqlApiResponse) => void): Request<AppSync.Types.AssociateSourceGraphqlApiResponse, AWSError>;
  34. /**
  35. * Creates an association between a Merged API and source API using the Merged API's identifier.
  36. */
  37. associateSourceGraphqlApi(callback?: (err: AWSError, data: AppSync.Types.AssociateSourceGraphqlApiResponse) => void): Request<AppSync.Types.AssociateSourceGraphqlApiResponse, AWSError>;
  38. /**
  39. * Creates a cache for the GraphQL API.
  40. */
  41. createApiCache(params: AppSync.Types.CreateApiCacheRequest, callback?: (err: AWSError, data: AppSync.Types.CreateApiCacheResponse) => void): Request<AppSync.Types.CreateApiCacheResponse, AWSError>;
  42. /**
  43. * Creates a cache for the GraphQL API.
  44. */
  45. createApiCache(callback?: (err: AWSError, data: AppSync.Types.CreateApiCacheResponse) => void): Request<AppSync.Types.CreateApiCacheResponse, AWSError>;
  46. /**
  47. * Creates a unique key that you can distribute to clients who invoke your API.
  48. */
  49. createApiKey(params: AppSync.Types.CreateApiKeyRequest, callback?: (err: AWSError, data: AppSync.Types.CreateApiKeyResponse) => void): Request<AppSync.Types.CreateApiKeyResponse, AWSError>;
  50. /**
  51. * Creates a unique key that you can distribute to clients who invoke your API.
  52. */
  53. createApiKey(callback?: (err: AWSError, data: AppSync.Types.CreateApiKeyResponse) => void): Request<AppSync.Types.CreateApiKeyResponse, AWSError>;
  54. /**
  55. * Creates a DataSource object.
  56. */
  57. createDataSource(params: AppSync.Types.CreateDataSourceRequest, callback?: (err: AWSError, data: AppSync.Types.CreateDataSourceResponse) => void): Request<AppSync.Types.CreateDataSourceResponse, AWSError>;
  58. /**
  59. * Creates a DataSource object.
  60. */
  61. createDataSource(callback?: (err: AWSError, data: AppSync.Types.CreateDataSourceResponse) => void): Request<AppSync.Types.CreateDataSourceResponse, AWSError>;
  62. /**
  63. * Creates a custom DomainName object.
  64. */
  65. createDomainName(params: AppSync.Types.CreateDomainNameRequest, callback?: (err: AWSError, data: AppSync.Types.CreateDomainNameResponse) => void): Request<AppSync.Types.CreateDomainNameResponse, AWSError>;
  66. /**
  67. * Creates a custom DomainName object.
  68. */
  69. createDomainName(callback?: (err: AWSError, data: AppSync.Types.CreateDomainNameResponse) => void): Request<AppSync.Types.CreateDomainNameResponse, AWSError>;
  70. /**
  71. * Creates a Function object. A function is a reusable entity. You can use multiple functions to compose the resolver logic.
  72. */
  73. createFunction(params: AppSync.Types.CreateFunctionRequest, callback?: (err: AWSError, data: AppSync.Types.CreateFunctionResponse) => void): Request<AppSync.Types.CreateFunctionResponse, AWSError>;
  74. /**
  75. * Creates a Function object. A function is a reusable entity. You can use multiple functions to compose the resolver logic.
  76. */
  77. createFunction(callback?: (err: AWSError, data: AppSync.Types.CreateFunctionResponse) => void): Request<AppSync.Types.CreateFunctionResponse, AWSError>;
  78. /**
  79. * Creates a GraphqlApi object.
  80. */
  81. createGraphqlApi(params: AppSync.Types.CreateGraphqlApiRequest, callback?: (err: AWSError, data: AppSync.Types.CreateGraphqlApiResponse) => void): Request<AppSync.Types.CreateGraphqlApiResponse, AWSError>;
  82. /**
  83. * Creates a GraphqlApi object.
  84. */
  85. createGraphqlApi(callback?: (err: AWSError, data: AppSync.Types.CreateGraphqlApiResponse) => void): Request<AppSync.Types.CreateGraphqlApiResponse, AWSError>;
  86. /**
  87. * 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.
  88. */
  89. createResolver(params: AppSync.Types.CreateResolverRequest, callback?: (err: AWSError, data: AppSync.Types.CreateResolverResponse) => void): Request<AppSync.Types.CreateResolverResponse, AWSError>;
  90. /**
  91. * 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.
  92. */
  93. createResolver(callback?: (err: AWSError, data: AppSync.Types.CreateResolverResponse) => void): Request<AppSync.Types.CreateResolverResponse, AWSError>;
  94. /**
  95. * Creates a Type object.
  96. */
  97. createType(params: AppSync.Types.CreateTypeRequest, callback?: (err: AWSError, data: AppSync.Types.CreateTypeResponse) => void): Request<AppSync.Types.CreateTypeResponse, AWSError>;
  98. /**
  99. * Creates a Type object.
  100. */
  101. createType(callback?: (err: AWSError, data: AppSync.Types.CreateTypeResponse) => void): Request<AppSync.Types.CreateTypeResponse, AWSError>;
  102. /**
  103. * Deletes an ApiCache object.
  104. */
  105. deleteApiCache(params: AppSync.Types.DeleteApiCacheRequest, callback?: (err: AWSError, data: AppSync.Types.DeleteApiCacheResponse) => void): Request<AppSync.Types.DeleteApiCacheResponse, AWSError>;
  106. /**
  107. * Deletes an ApiCache object.
  108. */
  109. deleteApiCache(callback?: (err: AWSError, data: AppSync.Types.DeleteApiCacheResponse) => void): Request<AppSync.Types.DeleteApiCacheResponse, AWSError>;
  110. /**
  111. * Deletes an API key.
  112. */
  113. deleteApiKey(params: AppSync.Types.DeleteApiKeyRequest, callback?: (err: AWSError, data: AppSync.Types.DeleteApiKeyResponse) => void): Request<AppSync.Types.DeleteApiKeyResponse, AWSError>;
  114. /**
  115. * Deletes an API key.
  116. */
  117. deleteApiKey(callback?: (err: AWSError, data: AppSync.Types.DeleteApiKeyResponse) => void): Request<AppSync.Types.DeleteApiKeyResponse, AWSError>;
  118. /**
  119. * Deletes a DataSource object.
  120. */
  121. deleteDataSource(params: AppSync.Types.DeleteDataSourceRequest, callback?: (err: AWSError, data: AppSync.Types.DeleteDataSourceResponse) => void): Request<AppSync.Types.DeleteDataSourceResponse, AWSError>;
  122. /**
  123. * Deletes a DataSource object.
  124. */
  125. deleteDataSource(callback?: (err: AWSError, data: AppSync.Types.DeleteDataSourceResponse) => void): Request<AppSync.Types.DeleteDataSourceResponse, AWSError>;
  126. /**
  127. * Deletes a custom DomainName object.
  128. */
  129. deleteDomainName(params: AppSync.Types.DeleteDomainNameRequest, callback?: (err: AWSError, data: AppSync.Types.DeleteDomainNameResponse) => void): Request<AppSync.Types.DeleteDomainNameResponse, AWSError>;
  130. /**
  131. * Deletes a custom DomainName object.
  132. */
  133. deleteDomainName(callback?: (err: AWSError, data: AppSync.Types.DeleteDomainNameResponse) => void): Request<AppSync.Types.DeleteDomainNameResponse, AWSError>;
  134. /**
  135. * Deletes a Function.
  136. */
  137. deleteFunction(params: AppSync.Types.DeleteFunctionRequest, callback?: (err: AWSError, data: AppSync.Types.DeleteFunctionResponse) => void): Request<AppSync.Types.DeleteFunctionResponse, AWSError>;
  138. /**
  139. * Deletes a Function.
  140. */
  141. deleteFunction(callback?: (err: AWSError, data: AppSync.Types.DeleteFunctionResponse) => void): Request<AppSync.Types.DeleteFunctionResponse, AWSError>;
  142. /**
  143. * Deletes a GraphqlApi object.
  144. */
  145. deleteGraphqlApi(params: AppSync.Types.DeleteGraphqlApiRequest, callback?: (err: AWSError, data: AppSync.Types.DeleteGraphqlApiResponse) => void): Request<AppSync.Types.DeleteGraphqlApiResponse, AWSError>;
  146. /**
  147. * Deletes a GraphqlApi object.
  148. */
  149. deleteGraphqlApi(callback?: (err: AWSError, data: AppSync.Types.DeleteGraphqlApiResponse) => void): Request<AppSync.Types.DeleteGraphqlApiResponse, AWSError>;
  150. /**
  151. * Deletes a Resolver object.
  152. */
  153. deleteResolver(params: AppSync.Types.DeleteResolverRequest, callback?: (err: AWSError, data: AppSync.Types.DeleteResolverResponse) => void): Request<AppSync.Types.DeleteResolverResponse, AWSError>;
  154. /**
  155. * Deletes a Resolver object.
  156. */
  157. deleteResolver(callback?: (err: AWSError, data: AppSync.Types.DeleteResolverResponse) => void): Request<AppSync.Types.DeleteResolverResponse, AWSError>;
  158. /**
  159. * Deletes a Type object.
  160. */
  161. deleteType(params: AppSync.Types.DeleteTypeRequest, callback?: (err: AWSError, data: AppSync.Types.DeleteTypeResponse) => void): Request<AppSync.Types.DeleteTypeResponse, AWSError>;
  162. /**
  163. * Deletes a Type object.
  164. */
  165. deleteType(callback?: (err: AWSError, data: AppSync.Types.DeleteTypeResponse) => void): Request<AppSync.Types.DeleteTypeResponse, AWSError>;
  166. /**
  167. * Removes an ApiAssociation object from a custom domain.
  168. */
  169. disassociateApi(params: AppSync.Types.DisassociateApiRequest, callback?: (err: AWSError, data: AppSync.Types.DisassociateApiResponse) => void): Request<AppSync.Types.DisassociateApiResponse, AWSError>;
  170. /**
  171. * Removes an ApiAssociation object from a custom domain.
  172. */
  173. disassociateApi(callback?: (err: AWSError, data: AppSync.Types.DisassociateApiResponse) => void): Request<AppSync.Types.DisassociateApiResponse, AWSError>;
  174. /**
  175. * Deletes an association between a Merged API and source API using the source API's identifier and the association ID.
  176. */
  177. disassociateMergedGraphqlApi(params: AppSync.Types.DisassociateMergedGraphqlApiRequest, callback?: (err: AWSError, data: AppSync.Types.DisassociateMergedGraphqlApiResponse) => void): Request<AppSync.Types.DisassociateMergedGraphqlApiResponse, AWSError>;
  178. /**
  179. * Deletes an association between a Merged API and source API using the source API's identifier and the association ID.
  180. */
  181. disassociateMergedGraphqlApi(callback?: (err: AWSError, data: AppSync.Types.DisassociateMergedGraphqlApiResponse) => void): Request<AppSync.Types.DisassociateMergedGraphqlApiResponse, AWSError>;
  182. /**
  183. * Deletes an association between a Merged API and source API using the Merged API's identifier and the association ID.
  184. */
  185. disassociateSourceGraphqlApi(params: AppSync.Types.DisassociateSourceGraphqlApiRequest, callback?: (err: AWSError, data: AppSync.Types.DisassociateSourceGraphqlApiResponse) => void): Request<AppSync.Types.DisassociateSourceGraphqlApiResponse, AWSError>;
  186. /**
  187. * Deletes an association between a Merged API and source API using the Merged API's identifier and the association ID.
  188. */
  189. disassociateSourceGraphqlApi(callback?: (err: AWSError, data: AppSync.Types.DisassociateSourceGraphqlApiResponse) => void): Request<AppSync.Types.DisassociateSourceGraphqlApiResponse, AWSError>;
  190. /**
  191. * Evaluates the given code and returns the response. The code definition requirements depend on the specified runtime. For APPSYNC_JS runtimes, the code defines the request and response functions. The request function takes the incoming request after a GraphQL operation is parsed and converts it into a request configuration for the selected data source operation. The response function interprets responses from the data source and maps it to the shape of the GraphQL field output type.
  192. */
  193. evaluateCode(params: AppSync.Types.EvaluateCodeRequest, callback?: (err: AWSError, data: AppSync.Types.EvaluateCodeResponse) => void): Request<AppSync.Types.EvaluateCodeResponse, AWSError>;
  194. /**
  195. * Evaluates the given code and returns the response. The code definition requirements depend on the specified runtime. For APPSYNC_JS runtimes, the code defines the request and response functions. The request function takes the incoming request after a GraphQL operation is parsed and converts it into a request configuration for the selected data source operation. The response function interprets responses from the data source and maps it to the shape of the GraphQL field output type.
  196. */
  197. evaluateCode(callback?: (err: AWSError, data: AppSync.Types.EvaluateCodeResponse) => void): Request<AppSync.Types.EvaluateCodeResponse, AWSError>;
  198. /**
  199. * Evaluates a given template and returns the response. The mapping template can be a request or response template. Request templates take the incoming request after a GraphQL operation is parsed and convert it into a request configuration for the selected data source operation. Response templates interpret responses from the data source and map it to the shape of the GraphQL field output type. Mapping templates are written in the Apache Velocity Template Language (VTL).
  200. */
  201. evaluateMappingTemplate(params: AppSync.Types.EvaluateMappingTemplateRequest, callback?: (err: AWSError, data: AppSync.Types.EvaluateMappingTemplateResponse) => void): Request<AppSync.Types.EvaluateMappingTemplateResponse, AWSError>;
  202. /**
  203. * Evaluates a given template and returns the response. The mapping template can be a request or response template. Request templates take the incoming request after a GraphQL operation is parsed and convert it into a request configuration for the selected data source operation. Response templates interpret responses from the data source and map it to the shape of the GraphQL field output type. Mapping templates are written in the Apache Velocity Template Language (VTL).
  204. */
  205. evaluateMappingTemplate(callback?: (err: AWSError, data: AppSync.Types.EvaluateMappingTemplateResponse) => void): Request<AppSync.Types.EvaluateMappingTemplateResponse, AWSError>;
  206. /**
  207. * Flushes an ApiCache object.
  208. */
  209. flushApiCache(params: AppSync.Types.FlushApiCacheRequest, callback?: (err: AWSError, data: AppSync.Types.FlushApiCacheResponse) => void): Request<AppSync.Types.FlushApiCacheResponse, AWSError>;
  210. /**
  211. * Flushes an ApiCache object.
  212. */
  213. flushApiCache(callback?: (err: AWSError, data: AppSync.Types.FlushApiCacheResponse) => void): Request<AppSync.Types.FlushApiCacheResponse, AWSError>;
  214. /**
  215. * Retrieves an ApiAssociation object.
  216. */
  217. getApiAssociation(params: AppSync.Types.GetApiAssociationRequest, callback?: (err: AWSError, data: AppSync.Types.GetApiAssociationResponse) => void): Request<AppSync.Types.GetApiAssociationResponse, AWSError>;
  218. /**
  219. * Retrieves an ApiAssociation object.
  220. */
  221. getApiAssociation(callback?: (err: AWSError, data: AppSync.Types.GetApiAssociationResponse) => void): Request<AppSync.Types.GetApiAssociationResponse, AWSError>;
  222. /**
  223. * Retrieves an ApiCache object.
  224. */
  225. getApiCache(params: AppSync.Types.GetApiCacheRequest, callback?: (err: AWSError, data: AppSync.Types.GetApiCacheResponse) => void): Request<AppSync.Types.GetApiCacheResponse, AWSError>;
  226. /**
  227. * Retrieves an ApiCache object.
  228. */
  229. getApiCache(callback?: (err: AWSError, data: AppSync.Types.GetApiCacheResponse) => void): Request<AppSync.Types.GetApiCacheResponse, AWSError>;
  230. /**
  231. * Retrieves a DataSource object.
  232. */
  233. getDataSource(params: AppSync.Types.GetDataSourceRequest, callback?: (err: AWSError, data: AppSync.Types.GetDataSourceResponse) => void): Request<AppSync.Types.GetDataSourceResponse, AWSError>;
  234. /**
  235. * Retrieves a DataSource object.
  236. */
  237. getDataSource(callback?: (err: AWSError, data: AppSync.Types.GetDataSourceResponse) => void): Request<AppSync.Types.GetDataSourceResponse, AWSError>;
  238. /**
  239. * Retrieves the record of an existing introspection. If the retrieval is successful, the result of the instrospection will also be returned. If the retrieval fails the operation, an error message will be returned instead.
  240. */
  241. getDataSourceIntrospection(params: AppSync.Types.GetDataSourceIntrospectionRequest, callback?: (err: AWSError, data: AppSync.Types.GetDataSourceIntrospectionResponse) => void): Request<AppSync.Types.GetDataSourceIntrospectionResponse, AWSError>;
  242. /**
  243. * Retrieves the record of an existing introspection. If the retrieval is successful, the result of the instrospection will also be returned. If the retrieval fails the operation, an error message will be returned instead.
  244. */
  245. getDataSourceIntrospection(callback?: (err: AWSError, data: AppSync.Types.GetDataSourceIntrospectionResponse) => void): Request<AppSync.Types.GetDataSourceIntrospectionResponse, AWSError>;
  246. /**
  247. * Retrieves a custom DomainName object.
  248. */
  249. getDomainName(params: AppSync.Types.GetDomainNameRequest, callback?: (err: AWSError, data: AppSync.Types.GetDomainNameResponse) => void): Request<AppSync.Types.GetDomainNameResponse, AWSError>;
  250. /**
  251. * Retrieves a custom DomainName object.
  252. */
  253. getDomainName(callback?: (err: AWSError, data: AppSync.Types.GetDomainNameResponse) => void): Request<AppSync.Types.GetDomainNameResponse, AWSError>;
  254. /**
  255. * Get a Function.
  256. */
  257. getFunction(params: AppSync.Types.GetFunctionRequest, callback?: (err: AWSError, data: AppSync.Types.GetFunctionResponse) => void): Request<AppSync.Types.GetFunctionResponse, AWSError>;
  258. /**
  259. * Get a Function.
  260. */
  261. getFunction(callback?: (err: AWSError, data: AppSync.Types.GetFunctionResponse) => void): Request<AppSync.Types.GetFunctionResponse, AWSError>;
  262. /**
  263. * Retrieves a GraphqlApi object.
  264. */
  265. getGraphqlApi(params: AppSync.Types.GetGraphqlApiRequest, callback?: (err: AWSError, data: AppSync.Types.GetGraphqlApiResponse) => void): Request<AppSync.Types.GetGraphqlApiResponse, AWSError>;
  266. /**
  267. * Retrieves a GraphqlApi object.
  268. */
  269. getGraphqlApi(callback?: (err: AWSError, data: AppSync.Types.GetGraphqlApiResponse) => void): Request<AppSync.Types.GetGraphqlApiResponse, AWSError>;
  270. /**
  271. * Retrieves the list of environmental variable key-value pairs associated with an API by its ID value.
  272. */
  273. getGraphqlApiEnvironmentVariables(params: AppSync.Types.GetGraphqlApiEnvironmentVariablesRequest, callback?: (err: AWSError, data: AppSync.Types.GetGraphqlApiEnvironmentVariablesResponse) => void): Request<AppSync.Types.GetGraphqlApiEnvironmentVariablesResponse, AWSError>;
  274. /**
  275. * Retrieves the list of environmental variable key-value pairs associated with an API by its ID value.
  276. */
  277. getGraphqlApiEnvironmentVariables(callback?: (err: AWSError, data: AppSync.Types.GetGraphqlApiEnvironmentVariablesResponse) => void): Request<AppSync.Types.GetGraphqlApiEnvironmentVariablesResponse, AWSError>;
  278. /**
  279. * Retrieves the introspection schema for a GraphQL API.
  280. */
  281. getIntrospectionSchema(params: AppSync.Types.GetIntrospectionSchemaRequest, callback?: (err: AWSError, data: AppSync.Types.GetIntrospectionSchemaResponse) => void): Request<AppSync.Types.GetIntrospectionSchemaResponse, AWSError>;
  282. /**
  283. * Retrieves the introspection schema for a GraphQL API.
  284. */
  285. getIntrospectionSchema(callback?: (err: AWSError, data: AppSync.Types.GetIntrospectionSchemaResponse) => void): Request<AppSync.Types.GetIntrospectionSchemaResponse, AWSError>;
  286. /**
  287. * Retrieves a Resolver object.
  288. */
  289. getResolver(params: AppSync.Types.GetResolverRequest, callback?: (err: AWSError, data: AppSync.Types.GetResolverResponse) => void): Request<AppSync.Types.GetResolverResponse, AWSError>;
  290. /**
  291. * Retrieves a Resolver object.
  292. */
  293. getResolver(callback?: (err: AWSError, data: AppSync.Types.GetResolverResponse) => void): Request<AppSync.Types.GetResolverResponse, AWSError>;
  294. /**
  295. * Retrieves the current status of a schema creation operation.
  296. */
  297. getSchemaCreationStatus(params: AppSync.Types.GetSchemaCreationStatusRequest, callback?: (err: AWSError, data: AppSync.Types.GetSchemaCreationStatusResponse) => void): Request<AppSync.Types.GetSchemaCreationStatusResponse, AWSError>;
  298. /**
  299. * Retrieves the current status of a schema creation operation.
  300. */
  301. getSchemaCreationStatus(callback?: (err: AWSError, data: AppSync.Types.GetSchemaCreationStatusResponse) => void): Request<AppSync.Types.GetSchemaCreationStatusResponse, AWSError>;
  302. /**
  303. * Retrieves a SourceApiAssociation object.
  304. */
  305. getSourceApiAssociation(params: AppSync.Types.GetSourceApiAssociationRequest, callback?: (err: AWSError, data: AppSync.Types.GetSourceApiAssociationResponse) => void): Request<AppSync.Types.GetSourceApiAssociationResponse, AWSError>;
  306. /**
  307. * Retrieves a SourceApiAssociation object.
  308. */
  309. getSourceApiAssociation(callback?: (err: AWSError, data: AppSync.Types.GetSourceApiAssociationResponse) => void): Request<AppSync.Types.GetSourceApiAssociationResponse, AWSError>;
  310. /**
  311. * Retrieves a Type object.
  312. */
  313. getType(params: AppSync.Types.GetTypeRequest, callback?: (err: AWSError, data: AppSync.Types.GetTypeResponse) => void): Request<AppSync.Types.GetTypeResponse, AWSError>;
  314. /**
  315. * Retrieves a Type object.
  316. */
  317. getType(callback?: (err: AWSError, data: AppSync.Types.GetTypeResponse) => void): Request<AppSync.Types.GetTypeResponse, AWSError>;
  318. /**
  319. * Lists the API keys for a given API. API keys are deleted automatically 60 days 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.
  320. */
  321. listApiKeys(params: AppSync.Types.ListApiKeysRequest, callback?: (err: AWSError, data: AppSync.Types.ListApiKeysResponse) => void): Request<AppSync.Types.ListApiKeysResponse, AWSError>;
  322. /**
  323. * Lists the API keys for a given API. API keys are deleted automatically 60 days 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.
  324. */
  325. listApiKeys(callback?: (err: AWSError, data: AppSync.Types.ListApiKeysResponse) => void): Request<AppSync.Types.ListApiKeysResponse, AWSError>;
  326. /**
  327. * Lists the data sources for a given API.
  328. */
  329. listDataSources(params: AppSync.Types.ListDataSourcesRequest, callback?: (err: AWSError, data: AppSync.Types.ListDataSourcesResponse) => void): Request<AppSync.Types.ListDataSourcesResponse, AWSError>;
  330. /**
  331. * Lists the data sources for a given API.
  332. */
  333. listDataSources(callback?: (err: AWSError, data: AppSync.Types.ListDataSourcesResponse) => void): Request<AppSync.Types.ListDataSourcesResponse, AWSError>;
  334. /**
  335. * Lists multiple custom domain names.
  336. */
  337. listDomainNames(params: AppSync.Types.ListDomainNamesRequest, callback?: (err: AWSError, data: AppSync.Types.ListDomainNamesResponse) => void): Request<AppSync.Types.ListDomainNamesResponse, AWSError>;
  338. /**
  339. * Lists multiple custom domain names.
  340. */
  341. listDomainNames(callback?: (err: AWSError, data: AppSync.Types.ListDomainNamesResponse) => void): Request<AppSync.Types.ListDomainNamesResponse, AWSError>;
  342. /**
  343. * List multiple functions.
  344. */
  345. listFunctions(params: AppSync.Types.ListFunctionsRequest, callback?: (err: AWSError, data: AppSync.Types.ListFunctionsResponse) => void): Request<AppSync.Types.ListFunctionsResponse, AWSError>;
  346. /**
  347. * List multiple functions.
  348. */
  349. listFunctions(callback?: (err: AWSError, data: AppSync.Types.ListFunctionsResponse) => void): Request<AppSync.Types.ListFunctionsResponse, AWSError>;
  350. /**
  351. * Lists your GraphQL APIs.
  352. */
  353. listGraphqlApis(params: AppSync.Types.ListGraphqlApisRequest, callback?: (err: AWSError, data: AppSync.Types.ListGraphqlApisResponse) => void): Request<AppSync.Types.ListGraphqlApisResponse, AWSError>;
  354. /**
  355. * Lists your GraphQL APIs.
  356. */
  357. listGraphqlApis(callback?: (err: AWSError, data: AppSync.Types.ListGraphqlApisResponse) => void): Request<AppSync.Types.ListGraphqlApisResponse, AWSError>;
  358. /**
  359. * Lists the resolvers for a given API and type.
  360. */
  361. listResolvers(params: AppSync.Types.ListResolversRequest, callback?: (err: AWSError, data: AppSync.Types.ListResolversResponse) => void): Request<AppSync.Types.ListResolversResponse, AWSError>;
  362. /**
  363. * Lists the resolvers for a given API and type.
  364. */
  365. listResolvers(callback?: (err: AWSError, data: AppSync.Types.ListResolversResponse) => void): Request<AppSync.Types.ListResolversResponse, AWSError>;
  366. /**
  367. * List the resolvers that are associated with a specific function.
  368. */
  369. listResolversByFunction(params: AppSync.Types.ListResolversByFunctionRequest, callback?: (err: AWSError, data: AppSync.Types.ListResolversByFunctionResponse) => void): Request<AppSync.Types.ListResolversByFunctionResponse, AWSError>;
  370. /**
  371. * List the resolvers that are associated with a specific function.
  372. */
  373. listResolversByFunction(callback?: (err: AWSError, data: AppSync.Types.ListResolversByFunctionResponse) => void): Request<AppSync.Types.ListResolversByFunctionResponse, AWSError>;
  374. /**
  375. * Lists the SourceApiAssociationSummary data.
  376. */
  377. listSourceApiAssociations(params: AppSync.Types.ListSourceApiAssociationsRequest, callback?: (err: AWSError, data: AppSync.Types.ListSourceApiAssociationsResponse) => void): Request<AppSync.Types.ListSourceApiAssociationsResponse, AWSError>;
  378. /**
  379. * Lists the SourceApiAssociationSummary data.
  380. */
  381. listSourceApiAssociations(callback?: (err: AWSError, data: AppSync.Types.ListSourceApiAssociationsResponse) => void): Request<AppSync.Types.ListSourceApiAssociationsResponse, AWSError>;
  382. /**
  383. * Lists the tags for a resource.
  384. */
  385. listTagsForResource(params: AppSync.Types.ListTagsForResourceRequest, callback?: (err: AWSError, data: AppSync.Types.ListTagsForResourceResponse) => void): Request<AppSync.Types.ListTagsForResourceResponse, AWSError>;
  386. /**
  387. * Lists the tags for a resource.
  388. */
  389. listTagsForResource(callback?: (err: AWSError, data: AppSync.Types.ListTagsForResourceResponse) => void): Request<AppSync.Types.ListTagsForResourceResponse, AWSError>;
  390. /**
  391. * Lists the types for a given API.
  392. */
  393. listTypes(params: AppSync.Types.ListTypesRequest, callback?: (err: AWSError, data: AppSync.Types.ListTypesResponse) => void): Request<AppSync.Types.ListTypesResponse, AWSError>;
  394. /**
  395. * Lists the types for a given API.
  396. */
  397. listTypes(callback?: (err: AWSError, data: AppSync.Types.ListTypesResponse) => void): Request<AppSync.Types.ListTypesResponse, AWSError>;
  398. /**
  399. * Lists Type objects by the source API association ID.
  400. */
  401. listTypesByAssociation(params: AppSync.Types.ListTypesByAssociationRequest, callback?: (err: AWSError, data: AppSync.Types.ListTypesByAssociationResponse) => void): Request<AppSync.Types.ListTypesByAssociationResponse, AWSError>;
  402. /**
  403. * Lists Type objects by the source API association ID.
  404. */
  405. listTypesByAssociation(callback?: (err: AWSError, data: AppSync.Types.ListTypesByAssociationResponse) => void): Request<AppSync.Types.ListTypesByAssociationResponse, AWSError>;
  406. /**
  407. * Creates a list of environmental variables in an API by its ID value. When creating an environmental variable, it must follow the constraints below: Both JavaScript and VTL templates support environmental variables. Environmental variables are not evaluated before function invocation. Environmental variables only support string values. Any defined value in an environmental variable is considered a string literal and not expanded. Variable evaluations should ideally be performed in the function code. When creating an environmental variable key-value pair, it must follow the additional constraints below: Keys must begin with a letter. Keys must be at least two characters long. Keys can only contain letters, numbers, and the underscore character (_). Values can be up to 512 characters long. You can configure up to 50 key-value pairs in a GraphQL API. You can create a list of environmental variables by adding it to the environmentVariables payload as a list in the format {"key1":"value1","key2":"value2", …}. Note that each call of the PutGraphqlApiEnvironmentVariables action will result in the overwriting of the existing environmental variable list of that API. This means the existing environmental variables will be lost. To avoid this, you must include all existing and new environmental variables in the list each time you call this action.
  408. */
  409. putGraphqlApiEnvironmentVariables(params: AppSync.Types.PutGraphqlApiEnvironmentVariablesRequest, callback?: (err: AWSError, data: AppSync.Types.PutGraphqlApiEnvironmentVariablesResponse) => void): Request<AppSync.Types.PutGraphqlApiEnvironmentVariablesResponse, AWSError>;
  410. /**
  411. * Creates a list of environmental variables in an API by its ID value. When creating an environmental variable, it must follow the constraints below: Both JavaScript and VTL templates support environmental variables. Environmental variables are not evaluated before function invocation. Environmental variables only support string values. Any defined value in an environmental variable is considered a string literal and not expanded. Variable evaluations should ideally be performed in the function code. When creating an environmental variable key-value pair, it must follow the additional constraints below: Keys must begin with a letter. Keys must be at least two characters long. Keys can only contain letters, numbers, and the underscore character (_). Values can be up to 512 characters long. You can configure up to 50 key-value pairs in a GraphQL API. You can create a list of environmental variables by adding it to the environmentVariables payload as a list in the format {"key1":"value1","key2":"value2", …}. Note that each call of the PutGraphqlApiEnvironmentVariables action will result in the overwriting of the existing environmental variable list of that API. This means the existing environmental variables will be lost. To avoid this, you must include all existing and new environmental variables in the list each time you call this action.
  412. */
  413. putGraphqlApiEnvironmentVariables(callback?: (err: AWSError, data: AppSync.Types.PutGraphqlApiEnvironmentVariablesResponse) => void): Request<AppSync.Types.PutGraphqlApiEnvironmentVariablesResponse, AWSError>;
  414. /**
  415. * Creates a new introspection. Returns the introspectionId of the new introspection after its creation.
  416. */
  417. startDataSourceIntrospection(params: AppSync.Types.StartDataSourceIntrospectionRequest, callback?: (err: AWSError, data: AppSync.Types.StartDataSourceIntrospectionResponse) => void): Request<AppSync.Types.StartDataSourceIntrospectionResponse, AWSError>;
  418. /**
  419. * Creates a new introspection. Returns the introspectionId of the new introspection after its creation.
  420. */
  421. startDataSourceIntrospection(callback?: (err: AWSError, data: AppSync.Types.StartDataSourceIntrospectionResponse) => void): Request<AppSync.Types.StartDataSourceIntrospectionResponse, AWSError>;
  422. /**
  423. * Adds a new schema to your GraphQL API. This operation is asynchronous. Use to determine when it has completed.
  424. */
  425. startSchemaCreation(params: AppSync.Types.StartSchemaCreationRequest, callback?: (err: AWSError, data: AppSync.Types.StartSchemaCreationResponse) => void): Request<AppSync.Types.StartSchemaCreationResponse, AWSError>;
  426. /**
  427. * Adds a new schema to your GraphQL API. This operation is asynchronous. Use to determine when it has completed.
  428. */
  429. startSchemaCreation(callback?: (err: AWSError, data: AppSync.Types.StartSchemaCreationResponse) => void): Request<AppSync.Types.StartSchemaCreationResponse, AWSError>;
  430. /**
  431. * Initiates a merge operation. Returns a status that shows the result of the merge operation.
  432. */
  433. startSchemaMerge(params: AppSync.Types.StartSchemaMergeRequest, callback?: (err: AWSError, data: AppSync.Types.StartSchemaMergeResponse) => void): Request<AppSync.Types.StartSchemaMergeResponse, AWSError>;
  434. /**
  435. * Initiates a merge operation. Returns a status that shows the result of the merge operation.
  436. */
  437. startSchemaMerge(callback?: (err: AWSError, data: AppSync.Types.StartSchemaMergeResponse) => void): Request<AppSync.Types.StartSchemaMergeResponse, AWSError>;
  438. /**
  439. * Tags a resource with user-supplied tags.
  440. */
  441. tagResource(params: AppSync.Types.TagResourceRequest, callback?: (err: AWSError, data: AppSync.Types.TagResourceResponse) => void): Request<AppSync.Types.TagResourceResponse, AWSError>;
  442. /**
  443. * Tags a resource with user-supplied tags.
  444. */
  445. tagResource(callback?: (err: AWSError, data: AppSync.Types.TagResourceResponse) => void): Request<AppSync.Types.TagResourceResponse, AWSError>;
  446. /**
  447. * Untags a resource.
  448. */
  449. untagResource(params: AppSync.Types.UntagResourceRequest, callback?: (err: AWSError, data: AppSync.Types.UntagResourceResponse) => void): Request<AppSync.Types.UntagResourceResponse, AWSError>;
  450. /**
  451. * Untags a resource.
  452. */
  453. untagResource(callback?: (err: AWSError, data: AppSync.Types.UntagResourceResponse) => void): Request<AppSync.Types.UntagResourceResponse, AWSError>;
  454. /**
  455. * Updates the cache for the GraphQL API.
  456. */
  457. updateApiCache(params: AppSync.Types.UpdateApiCacheRequest, callback?: (err: AWSError, data: AppSync.Types.UpdateApiCacheResponse) => void): Request<AppSync.Types.UpdateApiCacheResponse, AWSError>;
  458. /**
  459. * Updates the cache for the GraphQL API.
  460. */
  461. updateApiCache(callback?: (err: AWSError, data: AppSync.Types.UpdateApiCacheResponse) => void): Request<AppSync.Types.UpdateApiCacheResponse, AWSError>;
  462. /**
  463. * Updates an API key. You can update the key as long as it's not deleted.
  464. */
  465. updateApiKey(params: AppSync.Types.UpdateApiKeyRequest, callback?: (err: AWSError, data: AppSync.Types.UpdateApiKeyResponse) => void): Request<AppSync.Types.UpdateApiKeyResponse, AWSError>;
  466. /**
  467. * Updates an API key. You can update the key as long as it's not deleted.
  468. */
  469. updateApiKey(callback?: (err: AWSError, data: AppSync.Types.UpdateApiKeyResponse) => void): Request<AppSync.Types.UpdateApiKeyResponse, AWSError>;
  470. /**
  471. * Updates a DataSource object.
  472. */
  473. updateDataSource(params: AppSync.Types.UpdateDataSourceRequest, callback?: (err: AWSError, data: AppSync.Types.UpdateDataSourceResponse) => void): Request<AppSync.Types.UpdateDataSourceResponse, AWSError>;
  474. /**
  475. * Updates a DataSource object.
  476. */
  477. updateDataSource(callback?: (err: AWSError, data: AppSync.Types.UpdateDataSourceResponse) => void): Request<AppSync.Types.UpdateDataSourceResponse, AWSError>;
  478. /**
  479. * Updates a custom DomainName object.
  480. */
  481. updateDomainName(params: AppSync.Types.UpdateDomainNameRequest, callback?: (err: AWSError, data: AppSync.Types.UpdateDomainNameResponse) => void): Request<AppSync.Types.UpdateDomainNameResponse, AWSError>;
  482. /**
  483. * Updates a custom DomainName object.
  484. */
  485. updateDomainName(callback?: (err: AWSError, data: AppSync.Types.UpdateDomainNameResponse) => void): Request<AppSync.Types.UpdateDomainNameResponse, AWSError>;
  486. /**
  487. * Updates a Function object.
  488. */
  489. updateFunction(params: AppSync.Types.UpdateFunctionRequest, callback?: (err: AWSError, data: AppSync.Types.UpdateFunctionResponse) => void): Request<AppSync.Types.UpdateFunctionResponse, AWSError>;
  490. /**
  491. * Updates a Function object.
  492. */
  493. updateFunction(callback?: (err: AWSError, data: AppSync.Types.UpdateFunctionResponse) => void): Request<AppSync.Types.UpdateFunctionResponse, AWSError>;
  494. /**
  495. * Updates a GraphqlApi object.
  496. */
  497. updateGraphqlApi(params: AppSync.Types.UpdateGraphqlApiRequest, callback?: (err: AWSError, data: AppSync.Types.UpdateGraphqlApiResponse) => void): Request<AppSync.Types.UpdateGraphqlApiResponse, AWSError>;
  498. /**
  499. * Updates a GraphqlApi object.
  500. */
  501. updateGraphqlApi(callback?: (err: AWSError, data: AppSync.Types.UpdateGraphqlApiResponse) => void): Request<AppSync.Types.UpdateGraphqlApiResponse, AWSError>;
  502. /**
  503. * Updates a Resolver object.
  504. */
  505. updateResolver(params: AppSync.Types.UpdateResolverRequest, callback?: (err: AWSError, data: AppSync.Types.UpdateResolverResponse) => void): Request<AppSync.Types.UpdateResolverResponse, AWSError>;
  506. /**
  507. * Updates a Resolver object.
  508. */
  509. updateResolver(callback?: (err: AWSError, data: AppSync.Types.UpdateResolverResponse) => void): Request<AppSync.Types.UpdateResolverResponse, AWSError>;
  510. /**
  511. * Updates some of the configuration choices of a particular source API association.
  512. */
  513. updateSourceApiAssociation(params: AppSync.Types.UpdateSourceApiAssociationRequest, callback?: (err: AWSError, data: AppSync.Types.UpdateSourceApiAssociationResponse) => void): Request<AppSync.Types.UpdateSourceApiAssociationResponse, AWSError>;
  514. /**
  515. * Updates some of the configuration choices of a particular source API association.
  516. */
  517. updateSourceApiAssociation(callback?: (err: AWSError, data: AppSync.Types.UpdateSourceApiAssociationResponse) => void): Request<AppSync.Types.UpdateSourceApiAssociationResponse, AWSError>;
  518. /**
  519. * Updates a Type object.
  520. */
  521. updateType(params: AppSync.Types.UpdateTypeRequest, callback?: (err: AWSError, data: AppSync.Types.UpdateTypeResponse) => void): Request<AppSync.Types.UpdateTypeResponse, AWSError>;
  522. /**
  523. * Updates a Type object.
  524. */
  525. updateType(callback?: (err: AWSError, data: AppSync.Types.UpdateTypeResponse) => void): Request<AppSync.Types.UpdateTypeResponse, AWSError>;
  526. }
  527. declare namespace AppSync {
  528. export interface AdditionalAuthenticationProvider {
  529. /**
  530. * The authentication type: API key, Identity and Access Management (IAM), OpenID Connect (OIDC), Amazon Cognito user pools, or Lambda.
  531. */
  532. authenticationType?: AuthenticationType;
  533. /**
  534. * The OIDC configuration.
  535. */
  536. openIDConnectConfig?: OpenIDConnectConfig;
  537. /**
  538. * The Amazon Cognito user pool configuration.
  539. */
  540. userPoolConfig?: CognitoUserPoolConfig;
  541. /**
  542. * Configuration for Lambda function authorization.
  543. */
  544. lambdaAuthorizerConfig?: LambdaAuthorizerConfig;
  545. }
  546. export type AdditionalAuthenticationProviders = AdditionalAuthenticationProvider[];
  547. export interface ApiAssociation {
  548. /**
  549. * The domain name.
  550. */
  551. domainName?: DomainName;
  552. /**
  553. * The API ID.
  554. */
  555. apiId?: String;
  556. /**
  557. * Identifies the status of an association. PROCESSING: The API association is being created. You cannot modify association requests during processing. SUCCESS: The API association was successful. You can modify associations after success. FAILED: The API association has failed. You can modify associations after failure.
  558. */
  559. associationStatus?: AssociationStatus;
  560. /**
  561. * Details about the last deployment status.
  562. */
  563. deploymentDetail?: String;
  564. }
  565. export interface ApiCache {
  566. /**
  567. * TTL in seconds for cache entries. Valid values are 1–3,600 seconds.
  568. */
  569. ttl?: Long;
  570. /**
  571. * Caching behavior. FULL_REQUEST_CACHING: All requests are fully cached. PER_RESOLVER_CACHING: Individual resolvers that you specify are cached.
  572. */
  573. apiCachingBehavior?: ApiCachingBehavior;
  574. /**
  575. * Transit encryption flag when connecting to cache. You cannot update this setting after creation.
  576. */
  577. transitEncryptionEnabled?: Boolean;
  578. /**
  579. * At-rest encryption flag for cache. You cannot update this setting after creation.
  580. */
  581. atRestEncryptionEnabled?: Boolean;
  582. /**
  583. * The cache instance type. Valid values are SMALL MEDIUM LARGE XLARGE LARGE_2X LARGE_4X LARGE_8X (not available in all regions) LARGE_12X Historically, instance types were identified by an EC2-style value. As of July 2020, this is deprecated, and the generic identifiers above should be used. The following legacy instance types are available, but their use is discouraged: T2_SMALL: A t2.small instance type. T2_MEDIUM: A t2.medium instance type. R4_LARGE: A r4.large instance type. R4_XLARGE: A r4.xlarge instance type. R4_2XLARGE: A r4.2xlarge instance type. R4_4XLARGE: A r4.4xlarge instance type. R4_8XLARGE: A r4.8xlarge instance type.
  584. */
  585. type?: ApiCacheType;
  586. /**
  587. * The cache instance status. AVAILABLE: The instance is available for use. CREATING: The instance is currently creating. DELETING: The instance is currently deleting. MODIFYING: The instance is currently modifying. FAILED: The instance has failed creation.
  588. */
  589. status?: ApiCacheStatus;
  590. /**
  591. * Controls how cache health metrics will be emitted to CloudWatch. Cache health metrics include: NetworkBandwidthOutAllowanceExceeded: The network packets dropped because the throughput exceeded the aggregated bandwidth limit. This is useful for diagnosing bottlenecks in a cache configuration. EngineCPUUtilization: The CPU utilization (percentage) allocated to the Redis process. This is useful for diagnosing bottlenecks in a cache configuration. Metrics will be recorded by API ID. You can set the value to ENABLED or DISABLED.
  592. */
  593. healthMetricsConfig?: CacheHealthMetricsConfig;
  594. }
  595. export type ApiCacheStatus = "AVAILABLE"|"CREATING"|"DELETING"|"MODIFYING"|"FAILED"|string;
  596. export type ApiCacheType = "T2_SMALL"|"T2_MEDIUM"|"R4_LARGE"|"R4_XLARGE"|"R4_2XLARGE"|"R4_4XLARGE"|"R4_8XLARGE"|"SMALL"|"MEDIUM"|"LARGE"|"XLARGE"|"LARGE_2X"|"LARGE_4X"|"LARGE_8X"|"LARGE_12X"|string;
  597. export type ApiCachingBehavior = "FULL_REQUEST_CACHING"|"PER_RESOLVER_CACHING"|string;
  598. export interface ApiKey {
  599. /**
  600. * The API key ID.
  601. */
  602. id?: String;
  603. /**
  604. * A description of the purpose of the API key.
  605. */
  606. description?: String;
  607. /**
  608. * The time after which the API key expires. The date is represented as seconds since the epoch, rounded down to the nearest hour.
  609. */
  610. expires?: Long;
  611. /**
  612. * The time after which the API key is deleted. The date is represented as seconds since the epoch, rounded down to the nearest hour.
  613. */
  614. deletes?: Long;
  615. }
  616. export type ApiKeys = ApiKey[];
  617. export interface AppSyncRuntime {
  618. /**
  619. * The name of the runtime to use. Currently, the only allowed value is APPSYNC_JS.
  620. */
  621. name: RuntimeName;
  622. /**
  623. * The version of the runtime to use. Currently, the only allowed version is 1.0.0.
  624. */
  625. runtimeVersion: String;
  626. }
  627. export interface AssociateApiRequest {
  628. /**
  629. * The domain name.
  630. */
  631. domainName: DomainName;
  632. /**
  633. * The API ID. Private APIs can not be associated with custom domains.
  634. */
  635. apiId: String;
  636. }
  637. export interface AssociateApiResponse {
  638. /**
  639. * The ApiAssociation object.
  640. */
  641. apiAssociation?: ApiAssociation;
  642. }
  643. export interface AssociateMergedGraphqlApiRequest {
  644. /**
  645. * The identifier of the AppSync Source API. This is generated by the AppSync service. In most cases, source APIs (especially in your account) only require the API ID value or ARN of the source API. However, source APIs from other accounts (cross-account use cases) strictly require the full resource ARN of the source API.
  646. */
  647. sourceApiIdentifier: String;
  648. /**
  649. * The identifier of the AppSync Merged API. This is generated by the AppSync service. In most cases, Merged APIs (especially in your account) only require the API ID value or ARN of the merged API. However, Merged APIs in other accounts (cross-account use cases) strictly require the full resource ARN of the merged API.
  650. */
  651. mergedApiIdentifier: String;
  652. /**
  653. * The description field.
  654. */
  655. description?: String;
  656. /**
  657. * The SourceApiAssociationConfig object data.
  658. */
  659. sourceApiAssociationConfig?: SourceApiAssociationConfig;
  660. }
  661. export interface AssociateMergedGraphqlApiResponse {
  662. /**
  663. * The SourceApiAssociation object data.
  664. */
  665. sourceApiAssociation?: SourceApiAssociation;
  666. }
  667. export interface AssociateSourceGraphqlApiRequest {
  668. /**
  669. * The identifier of the AppSync Merged API. This is generated by the AppSync service. In most cases, Merged APIs (especially in your account) only require the API ID value or ARN of the merged API. However, Merged APIs in other accounts (cross-account use cases) strictly require the full resource ARN of the merged API.
  670. */
  671. mergedApiIdentifier: String;
  672. /**
  673. * The identifier of the AppSync Source API. This is generated by the AppSync service. In most cases, source APIs (especially in your account) only require the API ID value or ARN of the source API. However, source APIs from other accounts (cross-account use cases) strictly require the full resource ARN of the source API.
  674. */
  675. sourceApiIdentifier: String;
  676. /**
  677. * The description field.
  678. */
  679. description?: String;
  680. /**
  681. * The SourceApiAssociationConfig object data.
  682. */
  683. sourceApiAssociationConfig?: SourceApiAssociationConfig;
  684. }
  685. export interface AssociateSourceGraphqlApiResponse {
  686. /**
  687. * The SourceApiAssociation object data.
  688. */
  689. sourceApiAssociation?: SourceApiAssociation;
  690. }
  691. export type AssociationStatus = "PROCESSING"|"FAILED"|"SUCCESS"|string;
  692. export type AuthenticationType = "API_KEY"|"AWS_IAM"|"AMAZON_COGNITO_USER_POOLS"|"OPENID_CONNECT"|"AWS_LAMBDA"|string;
  693. export interface AuthorizationConfig {
  694. /**
  695. * The authorization type that the HTTP endpoint requires. AWS_IAM: The authorization type is Signature Version 4 (SigV4).
  696. */
  697. authorizationType: AuthorizationType;
  698. /**
  699. * The Identity and Access Management (IAM) settings.
  700. */
  701. awsIamConfig?: AwsIamConfig;
  702. }
  703. export type AuthorizationType = "AWS_IAM"|string;
  704. export interface AwsIamConfig {
  705. /**
  706. * The signing Amazon Web Services Region for IAM authorization.
  707. */
  708. signingRegion?: String;
  709. /**
  710. * The signing service name for IAM authorization.
  711. */
  712. signingServiceName?: String;
  713. }
  714. export type _Blob = Buffer|Uint8Array|Blob|string;
  715. export type Boolean = boolean;
  716. export type BooleanValue = boolean;
  717. export type CacheHealthMetricsConfig = "ENABLED"|"DISABLED"|string;
  718. export interface CachingConfig {
  719. /**
  720. * The TTL in seconds for a resolver that has caching activated. Valid values are 1–3,600 seconds.
  721. */
  722. ttl: Long;
  723. /**
  724. * The caching keys for a resolver that has caching activated. Valid values are entries from the $context.arguments, $context.source, and $context.identity maps.
  725. */
  726. cachingKeys?: CachingKeys;
  727. }
  728. export type CachingKeys = String[];
  729. export type CertificateArn = string;
  730. export type Code = string;
  731. export interface CodeError {
  732. /**
  733. * The type of code error. Examples include, but aren't limited to: LINT_ERROR, PARSER_ERROR.
  734. */
  735. errorType?: String;
  736. /**
  737. * A user presentable error. Examples include, but aren't limited to: Parsing error: Unterminated string literal.
  738. */
  739. value?: String;
  740. /**
  741. * The line, column, and span location of the error in the code.
  742. */
  743. location?: CodeErrorLocation;
  744. }
  745. export type CodeErrorColumn = number;
  746. export type CodeErrorLine = number;
  747. export interface CodeErrorLocation {
  748. /**
  749. * The line number in the code. Defaults to 0 if unknown.
  750. */
  751. line?: CodeErrorLine;
  752. /**
  753. * The column number in the code. Defaults to 0 if unknown.
  754. */
  755. column?: CodeErrorColumn;
  756. /**
  757. * The span/length of the error. Defaults to -1 if unknown.
  758. */
  759. span?: CodeErrorSpan;
  760. }
  761. export type CodeErrorSpan = number;
  762. export type CodeErrors = CodeError[];
  763. export interface CognitoUserPoolConfig {
  764. /**
  765. * The user pool ID.
  766. */
  767. userPoolId: String;
  768. /**
  769. * The Amazon Web Services Region in which the user pool was created.
  770. */
  771. awsRegion: String;
  772. /**
  773. * A regular expression for validating the incoming Amazon Cognito user pool app client ID. If this value isn't set, no filtering is applied.
  774. */
  775. appIdClientRegex?: String;
  776. }
  777. export type ConflictDetectionType = "VERSION"|"NONE"|string;
  778. export type ConflictHandlerType = "OPTIMISTIC_CONCURRENCY"|"LAMBDA"|"AUTOMERGE"|"NONE"|string;
  779. export type Context = string;
  780. export interface CreateApiCacheRequest {
  781. /**
  782. * The GraphQL API ID.
  783. */
  784. apiId: String;
  785. /**
  786. * TTL in seconds for cache entries. Valid values are 1–3,600 seconds.
  787. */
  788. ttl: Long;
  789. /**
  790. * Transit encryption flag when connecting to cache. You cannot update this setting after creation.
  791. */
  792. transitEncryptionEnabled?: Boolean;
  793. /**
  794. * At-rest encryption flag for cache. You cannot update this setting after creation.
  795. */
  796. atRestEncryptionEnabled?: Boolean;
  797. /**
  798. * Caching behavior. FULL_REQUEST_CACHING: All requests are fully cached. PER_RESOLVER_CACHING: Individual resolvers that you specify are cached.
  799. */
  800. apiCachingBehavior: ApiCachingBehavior;
  801. /**
  802. * The cache instance type. Valid values are SMALL MEDIUM LARGE XLARGE LARGE_2X LARGE_4X LARGE_8X (not available in all regions) LARGE_12X Historically, instance types were identified by an EC2-style value. As of July 2020, this is deprecated, and the generic identifiers above should be used. The following legacy instance types are available, but their use is discouraged: T2_SMALL: A t2.small instance type. T2_MEDIUM: A t2.medium instance type. R4_LARGE: A r4.large instance type. R4_XLARGE: A r4.xlarge instance type. R4_2XLARGE: A r4.2xlarge instance type. R4_4XLARGE: A r4.4xlarge instance type. R4_8XLARGE: A r4.8xlarge instance type.
  803. */
  804. type: ApiCacheType;
  805. /**
  806. * Controls how cache health metrics will be emitted to CloudWatch. Cache health metrics include: NetworkBandwidthOutAllowanceExceeded: The network packets dropped because the throughput exceeded the aggregated bandwidth limit. This is useful for diagnosing bottlenecks in a cache configuration. EngineCPUUtilization: The CPU utilization (percentage) allocated to the Redis process. This is useful for diagnosing bottlenecks in a cache configuration. Metrics will be recorded by API ID. You can set the value to ENABLED or DISABLED.
  807. */
  808. healthMetricsConfig?: CacheHealthMetricsConfig;
  809. }
  810. export interface CreateApiCacheResponse {
  811. /**
  812. * The ApiCache object.
  813. */
  814. apiCache?: ApiCache;
  815. }
  816. export interface CreateApiKeyRequest {
  817. /**
  818. * The ID for your GraphQL API.
  819. */
  820. apiId: String;
  821. /**
  822. * A description of the purpose of the API key.
  823. */
  824. description?: String;
  825. /**
  826. * From the creation time, the 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 .
  827. */
  828. expires?: Long;
  829. }
  830. export interface CreateApiKeyResponse {
  831. /**
  832. * The API key.
  833. */
  834. apiKey?: ApiKey;
  835. }
  836. export interface CreateDataSourceRequest {
  837. /**
  838. * The API ID for the GraphQL API for the DataSource.
  839. */
  840. apiId: String;
  841. /**
  842. * A user-supplied name for the DataSource.
  843. */
  844. name: ResourceName;
  845. /**
  846. * A description of the DataSource.
  847. */
  848. description?: String;
  849. /**
  850. * The type of the DataSource.
  851. */
  852. type: DataSourceType;
  853. /**
  854. * The Identity and Access Management (IAM) service role Amazon Resource Name (ARN) for the data source. The system assumes this role when accessing the data source.
  855. */
  856. serviceRoleArn?: String;
  857. /**
  858. * Amazon DynamoDB settings.
  859. */
  860. dynamodbConfig?: DynamodbDataSourceConfig;
  861. /**
  862. * Lambda settings.
  863. */
  864. lambdaConfig?: LambdaDataSourceConfig;
  865. /**
  866. * Amazon OpenSearch Service settings. As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This configuration is deprecated. For new data sources, use CreateDataSourceRequest$openSearchServiceConfig to create an OpenSearch data source.
  867. */
  868. elasticsearchConfig?: ElasticsearchDataSourceConfig;
  869. /**
  870. * Amazon OpenSearch Service settings.
  871. */
  872. openSearchServiceConfig?: OpenSearchServiceDataSourceConfig;
  873. /**
  874. * HTTP endpoint settings.
  875. */
  876. httpConfig?: HttpDataSourceConfig;
  877. /**
  878. * Relational database settings.
  879. */
  880. relationalDatabaseConfig?: RelationalDatabaseDataSourceConfig;
  881. /**
  882. * Amazon EventBridge settings.
  883. */
  884. eventBridgeConfig?: EventBridgeDataSourceConfig;
  885. /**
  886. * Enables or disables enhanced data source metrics for specified data sources. Note that metricsConfig won't be used unless the dataSourceLevelMetricsBehavior value is set to PER_DATA_SOURCE_METRICS. If the dataSourceLevelMetricsBehavior is set to FULL_REQUEST_DATA_SOURCE_METRICS instead, metricsConfig will be ignored. However, you can still set its value. metricsConfig can be ENABLED or DISABLED.
  887. */
  888. metricsConfig?: DataSourceLevelMetricsConfig;
  889. }
  890. export interface CreateDataSourceResponse {
  891. /**
  892. * The DataSource object.
  893. */
  894. dataSource?: DataSource;
  895. }
  896. export interface CreateDomainNameRequest {
  897. /**
  898. * The domain name.
  899. */
  900. domainName: DomainName;
  901. /**
  902. * The Amazon Resource Name (ARN) of the certificate. This can be an Certificate Manager (ACM) certificate or an Identity and Access Management (IAM) server certificate.
  903. */
  904. certificateArn: CertificateArn;
  905. /**
  906. * A description of the DomainName.
  907. */
  908. description?: Description;
  909. }
  910. export interface CreateDomainNameResponse {
  911. /**
  912. * The configuration for the DomainName.
  913. */
  914. domainNameConfig?: DomainNameConfig;
  915. }
  916. export interface CreateFunctionRequest {
  917. /**
  918. * The GraphQL API ID.
  919. */
  920. apiId: String;
  921. /**
  922. * The Function name. The function name does not have to be unique.
  923. */
  924. name: ResourceName;
  925. /**
  926. * The Function description.
  927. */
  928. description?: String;
  929. /**
  930. * The Function DataSource name.
  931. */
  932. dataSourceName: ResourceName;
  933. /**
  934. * The Function request mapping template. Functions support only the 2018-05-29 version of the request mapping template.
  935. */
  936. requestMappingTemplate?: MappingTemplate;
  937. /**
  938. * The Function response mapping template.
  939. */
  940. responseMappingTemplate?: MappingTemplate;
  941. /**
  942. * The version of the request mapping template. Currently, the supported value is 2018-05-29. Note that when using VTL and mapping templates, the functionVersion is required.
  943. */
  944. functionVersion?: String;
  945. syncConfig?: SyncConfig;
  946. /**
  947. * The maximum batching size for a resolver.
  948. */
  949. maxBatchSize?: MaxBatchSize;
  950. runtime?: AppSyncRuntime;
  951. /**
  952. * The function code that contains the request and response functions. When code is used, the runtime is required. The runtime value must be APPSYNC_JS.
  953. */
  954. code?: Code;
  955. }
  956. export interface CreateFunctionResponse {
  957. /**
  958. * The Function object.
  959. */
  960. functionConfiguration?: FunctionConfiguration;
  961. }
  962. export interface CreateGraphqlApiRequest {
  963. /**
  964. * A user-supplied name for the GraphqlApi.
  965. */
  966. name: String;
  967. /**
  968. * The Amazon CloudWatch Logs configuration.
  969. */
  970. logConfig?: LogConfig;
  971. /**
  972. * The authentication type: API key, Identity and Access Management (IAM), OpenID Connect (OIDC), Amazon Cognito user pools, or Lambda.
  973. */
  974. authenticationType: AuthenticationType;
  975. /**
  976. * The Amazon Cognito user pool configuration.
  977. */
  978. userPoolConfig?: UserPoolConfig;
  979. /**
  980. * The OIDC configuration.
  981. */
  982. openIDConnectConfig?: OpenIDConnectConfig;
  983. /**
  984. * A TagMap object.
  985. */
  986. tags?: TagMap;
  987. /**
  988. * A list of additional authentication providers for the GraphqlApi API.
  989. */
  990. additionalAuthenticationProviders?: AdditionalAuthenticationProviders;
  991. /**
  992. * A flag indicating whether to use X-Ray tracing for the GraphqlApi.
  993. */
  994. xrayEnabled?: Boolean;
  995. /**
  996. * Configuration for Lambda function authorization.
  997. */
  998. lambdaAuthorizerConfig?: LambdaAuthorizerConfig;
  999. /**
  1000. * Sets the value of the GraphQL API to public (GLOBAL) or private (PRIVATE). If no value is provided, the visibility will be set to GLOBAL by default. This value cannot be changed once the API has been created.
  1001. */
  1002. visibility?: GraphQLApiVisibility;
  1003. /**
  1004. * The value that indicates whether the GraphQL API is a standard API (GRAPHQL) or merged API (MERGED).
  1005. */
  1006. apiType?: GraphQLApiType;
  1007. /**
  1008. * The Identity and Access Management service role ARN for a merged API. The AppSync service assumes this role on behalf of the Merged API to validate access to source APIs at runtime and to prompt the AUTO_MERGE to update the merged API endpoint with the source API changes automatically.
  1009. */
  1010. mergedApiExecutionRoleArn?: String;
  1011. /**
  1012. * The owner contact information for an API resource. This field accepts any string input with a length of 0 - 256 characters.
  1013. */
  1014. ownerContact?: String;
  1015. /**
  1016. * Sets the value of the GraphQL API to enable (ENABLED) or disable (DISABLED) introspection. If no value is provided, the introspection configuration will be set to ENABLED by default. This field will produce an error if the operation attempts to use the introspection feature while this field is disabled. For more information about introspection, see GraphQL introspection.
  1017. */
  1018. introspectionConfig?: GraphQLApiIntrospectionConfig;
  1019. /**
  1020. * The maximum depth a query can have in a single request. Depth refers to the amount of nested levels allowed in the body of query. The default value is 0 (or unspecified), which indicates there's no depth limit. If you set a limit, it can be between 1 and 75 nested levels. This field will produce a limit error if the operation falls out of bounds. Note that fields can still be set to nullable or non-nullable. If a non-nullable field produces an error, the error will be thrown upwards to the first nullable field available.
  1021. */
  1022. queryDepthLimit?: QueryDepthLimit;
  1023. /**
  1024. * The maximum number of resolvers that can be invoked in a single request. The default value is 0 (or unspecified), which will set the limit to 10000. When specified, the limit value can be between 1 and 10000. This field will produce a limit error if the operation falls out of bounds.
  1025. */
  1026. resolverCountLimit?: ResolverCountLimit;
  1027. /**
  1028. * The enhancedMetricsConfig object.
  1029. */
  1030. enhancedMetricsConfig?: EnhancedMetricsConfig;
  1031. }
  1032. export interface CreateGraphqlApiResponse {
  1033. /**
  1034. * The GraphqlApi.
  1035. */
  1036. graphqlApi?: GraphqlApi;
  1037. }
  1038. export interface CreateResolverRequest {
  1039. /**
  1040. * The ID for the GraphQL API for which the resolver is being created.
  1041. */
  1042. apiId: String;
  1043. /**
  1044. * The name of the Type.
  1045. */
  1046. typeName: ResourceName;
  1047. /**
  1048. * The name of the field to attach the resolver to.
  1049. */
  1050. fieldName: ResourceName;
  1051. /**
  1052. * The name of the data source for which the resolver is being created.
  1053. */
  1054. dataSourceName?: ResourceName;
  1055. /**
  1056. * The mapping template to use 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). VTL request mapping templates are optional when using an Lambda data source. For all other data sources, VTL request and response mapping templates are required.
  1057. */
  1058. requestMappingTemplate?: MappingTemplate;
  1059. /**
  1060. * The mapping template to use for responses from the data source.
  1061. */
  1062. responseMappingTemplate?: MappingTemplate;
  1063. /**
  1064. * The resolver type. UNIT: A UNIT resolver type. A UNIT resolver is the default resolver type. You can use a UNIT resolver to run a GraphQL query against a single data source. PIPELINE: A PIPELINE resolver type. You can use a PIPELINE resolver to invoke a series of Function objects in a serial manner. You can use a pipeline resolver to run a GraphQL query against multiple data sources.
  1065. */
  1066. kind?: ResolverKind;
  1067. /**
  1068. * The PipelineConfig.
  1069. */
  1070. pipelineConfig?: PipelineConfig;
  1071. /**
  1072. * The SyncConfig for a resolver attached to a versioned data source.
  1073. */
  1074. syncConfig?: SyncConfig;
  1075. /**
  1076. * The caching configuration for the resolver.
  1077. */
  1078. cachingConfig?: CachingConfig;
  1079. /**
  1080. * The maximum batching size for a resolver.
  1081. */
  1082. maxBatchSize?: MaxBatchSize;
  1083. runtime?: AppSyncRuntime;
  1084. /**
  1085. * The resolver code that contains the request and response functions. When code is used, the runtime is required. The runtime value must be APPSYNC_JS.
  1086. */
  1087. code?: Code;
  1088. /**
  1089. * Enables or disables enhanced resolver metrics for specified resolvers. Note that metricsConfig won't be used unless the resolverLevelMetricsBehavior value is set to PER_RESOLVER_METRICS. If the resolverLevelMetricsBehavior is set to FULL_REQUEST_RESOLVER_METRICS instead, metricsConfig will be ignored. However, you can still set its value. metricsConfig can be ENABLED or DISABLED.
  1090. */
  1091. metricsConfig?: ResolverLevelMetricsConfig;
  1092. }
  1093. export interface CreateResolverResponse {
  1094. /**
  1095. * The Resolver object.
  1096. */
  1097. resolver?: Resolver;
  1098. }
  1099. export interface CreateTypeRequest {
  1100. /**
  1101. * The API ID.
  1102. */
  1103. apiId: String;
  1104. /**
  1105. * The type definition, in GraphQL Schema Definition Language (SDL) format. For more information, see the GraphQL SDL documentation.
  1106. */
  1107. definition: String;
  1108. /**
  1109. * The type format: SDL or JSON.
  1110. */
  1111. format: TypeDefinitionFormat;
  1112. }
  1113. export interface CreateTypeResponse {
  1114. /**
  1115. * The Type object.
  1116. */
  1117. type?: Type;
  1118. }
  1119. export interface DataSource {
  1120. /**
  1121. * The data source Amazon Resource Name (ARN).
  1122. */
  1123. dataSourceArn?: String;
  1124. /**
  1125. * The name of the data source.
  1126. */
  1127. name?: ResourceName;
  1128. /**
  1129. * The description of the data source.
  1130. */
  1131. description?: String;
  1132. /**
  1133. * The type of the data source. AWS_LAMBDA: The data source is an Lambda function. AMAZON_DYNAMODB: The data source is an Amazon DynamoDB table. AMAZON_ELASTICSEARCH: The data source is an Amazon OpenSearch Service domain. AMAZON_OPENSEARCH_SERVICE: The data source is an Amazon OpenSearch Service domain. AMAZON_EVENTBRIDGE: The data source is an Amazon EventBridge configuration. NONE: There is no data source. Use this type when you want to invoke a GraphQL operation without connecting to a data source, such as when you're performing data transformation with resolvers or invoking a subscription from a mutation. HTTP: The data source is an HTTP endpoint. RELATIONAL_DATABASE: The data source is a relational database.
  1134. */
  1135. type?: DataSourceType;
  1136. /**
  1137. * The Identity and Access Management (IAM) service role Amazon Resource Name (ARN) for the data source. The system assumes this role when accessing the data source.
  1138. */
  1139. serviceRoleArn?: String;
  1140. /**
  1141. * DynamoDB settings.
  1142. */
  1143. dynamodbConfig?: DynamodbDataSourceConfig;
  1144. /**
  1145. * Lambda settings.
  1146. */
  1147. lambdaConfig?: LambdaDataSourceConfig;
  1148. /**
  1149. * Amazon OpenSearch Service settings.
  1150. */
  1151. elasticsearchConfig?: ElasticsearchDataSourceConfig;
  1152. /**
  1153. * Amazon OpenSearch Service settings.
  1154. */
  1155. openSearchServiceConfig?: OpenSearchServiceDataSourceConfig;
  1156. /**
  1157. * HTTP endpoint settings.
  1158. */
  1159. httpConfig?: HttpDataSourceConfig;
  1160. /**
  1161. * Relational database settings.
  1162. */
  1163. relationalDatabaseConfig?: RelationalDatabaseDataSourceConfig;
  1164. /**
  1165. * Amazon EventBridge settings.
  1166. */
  1167. eventBridgeConfig?: EventBridgeDataSourceConfig;
  1168. /**
  1169. * Enables or disables enhanced data source metrics for specified data sources. Note that metricsConfig won't be used unless the dataSourceLevelMetricsBehavior value is set to PER_DATA_SOURCE_METRICS. If the dataSourceLevelMetricsBehavior is set to FULL_REQUEST_DATA_SOURCE_METRICS instead, metricsConfig will be ignored. However, you can still set its value. metricsConfig can be ENABLED or DISABLED.
  1170. */
  1171. metricsConfig?: DataSourceLevelMetricsConfig;
  1172. }
  1173. export interface DataSourceIntrospectionModel {
  1174. /**
  1175. * The name of the model. For example, this could be the name of a single table in a database.
  1176. */
  1177. name?: String;
  1178. /**
  1179. * The DataSourceIntrospectionModelField object data.
  1180. */
  1181. fields?: DataSourceIntrospectionModelFields;
  1182. /**
  1183. * The primary key stored as a DataSourceIntrospectionModelIndex object.
  1184. */
  1185. primaryKey?: DataSourceIntrospectionModelIndex;
  1186. /**
  1187. * The array of DataSourceIntrospectionModelIndex objects.
  1188. */
  1189. indexes?: DataSourceIntrospectionModelIndexes;
  1190. /**
  1191. * Contains the output of the SDL that was generated from the introspected types. This is controlled by the includeModelsSDL parameter of the GetDataSourceIntrospection operation.
  1192. */
  1193. sdl?: String;
  1194. }
  1195. export interface DataSourceIntrospectionModelField {
  1196. /**
  1197. * The name of the field that was retrieved from the introspected data.
  1198. */
  1199. name?: String;
  1200. /**
  1201. * The DataSourceIntrospectionModelFieldType object data.
  1202. */
  1203. type?: DataSourceIntrospectionModelFieldType;
  1204. /**
  1205. * The length value of the introspected field.
  1206. */
  1207. length?: Long;
  1208. }
  1209. export interface DataSourceIntrospectionModelFieldType {
  1210. /**
  1211. * Specifies the classification of data. For example, this could be set to values like Scalar or NonNull to indicate a fundamental property of the field. Valid values include: Scalar: Indicates the value is a primitive type (scalar). NonNull: Indicates the field cannot be null. List: Indicates the field contains a list.
  1212. */
  1213. kind?: String;
  1214. /**
  1215. * The name of the data type that represents the field. For example, String is a valid name value.
  1216. */
  1217. name?: String;
  1218. /**
  1219. * The DataSourceIntrospectionModelFieldType object data. The type is only present if DataSourceIntrospectionModelFieldType.kind is set to NonNull or List. The type typically contains its own kind and name fields to represent the actual type data. For instance, type could contain a kind value of Scalar with a name value of String. The values Scalar and String will be collectively stored in the values field.
  1220. */
  1221. type?: DataSourceIntrospectionModelFieldType;
  1222. /**
  1223. * The values of the type field. This field represents the AppSync data type equivalent of the introspected field.
  1224. */
  1225. values?: DataSourceIntrospectionModelFieldTypeValues;
  1226. }
  1227. export type DataSourceIntrospectionModelFieldTypeValues = String[];
  1228. export type DataSourceIntrospectionModelFields = DataSourceIntrospectionModelField[];
  1229. export interface DataSourceIntrospectionModelIndex {
  1230. /**
  1231. * The name of the index.
  1232. */
  1233. name?: String;
  1234. /**
  1235. * The fields of the index.
  1236. */
  1237. fields?: DataSourceIntrospectionModelIndexFields;
  1238. }
  1239. export type DataSourceIntrospectionModelIndexFields = String[];
  1240. export type DataSourceIntrospectionModelIndexes = DataSourceIntrospectionModelIndex[];
  1241. export type DataSourceIntrospectionModels = DataSourceIntrospectionModel[];
  1242. export interface DataSourceIntrospectionResult {
  1243. /**
  1244. * The array of DataSourceIntrospectionModel objects.
  1245. */
  1246. models?: DataSourceIntrospectionModels;
  1247. /**
  1248. * Determines the number of types to be returned in a single response before paginating. This value is typically taken from nextToken value from the previous response.
  1249. */
  1250. nextToken?: PaginationToken;
  1251. }
  1252. export type DataSourceIntrospectionStatus = "PROCESSING"|"FAILED"|"SUCCESS"|string;
  1253. export type DataSourceLevelMetricsBehavior = "FULL_REQUEST_DATA_SOURCE_METRICS"|"PER_DATA_SOURCE_METRICS"|string;
  1254. export type DataSourceLevelMetricsConfig = "ENABLED"|"DISABLED"|string;
  1255. export type DataSourceType = "AWS_LAMBDA"|"AMAZON_DYNAMODB"|"AMAZON_ELASTICSEARCH"|"NONE"|"HTTP"|"RELATIONAL_DATABASE"|"AMAZON_OPENSEARCH_SERVICE"|"AMAZON_EVENTBRIDGE"|string;
  1256. export type DataSources = DataSource[];
  1257. export type _Date = Date;
  1258. export type DefaultAction = "ALLOW"|"DENY"|string;
  1259. export interface DeleteApiCacheRequest {
  1260. /**
  1261. * The API ID.
  1262. */
  1263. apiId: String;
  1264. }
  1265. export interface DeleteApiCacheResponse {
  1266. }
  1267. export interface DeleteApiKeyRequest {
  1268. /**
  1269. * The API ID.
  1270. */
  1271. apiId: String;
  1272. /**
  1273. * The ID for the API key.
  1274. */
  1275. id: String;
  1276. }
  1277. export interface DeleteApiKeyResponse {
  1278. }
  1279. export interface DeleteDataSourceRequest {
  1280. /**
  1281. * The API ID.
  1282. */
  1283. apiId: String;
  1284. /**
  1285. * The name of the data source.
  1286. */
  1287. name: ResourceName;
  1288. }
  1289. export interface DeleteDataSourceResponse {
  1290. }
  1291. export interface DeleteDomainNameRequest {
  1292. /**
  1293. * The domain name.
  1294. */
  1295. domainName: DomainName;
  1296. }
  1297. export interface DeleteDomainNameResponse {
  1298. }
  1299. export interface DeleteFunctionRequest {
  1300. /**
  1301. * The GraphQL API ID.
  1302. */
  1303. apiId: String;
  1304. /**
  1305. * The Function ID.
  1306. */
  1307. functionId: ResourceName;
  1308. }
  1309. export interface DeleteFunctionResponse {
  1310. }
  1311. export interface DeleteGraphqlApiRequest {
  1312. /**
  1313. * The API ID.
  1314. */
  1315. apiId: String;
  1316. }
  1317. export interface DeleteGraphqlApiResponse {
  1318. }
  1319. export interface DeleteResolverRequest {
  1320. /**
  1321. * The API ID.
  1322. */
  1323. apiId: String;
  1324. /**
  1325. * The name of the resolver type.
  1326. */
  1327. typeName: ResourceName;
  1328. /**
  1329. * The resolver field name.
  1330. */
  1331. fieldName: ResourceName;
  1332. }
  1333. export interface DeleteResolverResponse {
  1334. }
  1335. export interface DeleteTypeRequest {
  1336. /**
  1337. * The API ID.
  1338. */
  1339. apiId: String;
  1340. /**
  1341. * The type name.
  1342. */
  1343. typeName: ResourceName;
  1344. }
  1345. export interface DeleteTypeResponse {
  1346. }
  1347. export interface DeltaSyncConfig {
  1348. /**
  1349. * The number of minutes that an Item is stored in the data source.
  1350. */
  1351. baseTableTTL?: Long;
  1352. /**
  1353. * The Delta Sync table name.
  1354. */
  1355. deltaSyncTableName?: String;
  1356. /**
  1357. * The number of minutes that a Delta Sync log entry is stored in the Delta Sync table.
  1358. */
  1359. deltaSyncTableTTL?: Long;
  1360. }
  1361. export type Description = string;
  1362. export interface DisassociateApiRequest {
  1363. /**
  1364. * The domain name.
  1365. */
  1366. domainName: DomainName;
  1367. }
  1368. export interface DisassociateApiResponse {
  1369. }
  1370. export interface DisassociateMergedGraphqlApiRequest {
  1371. /**
  1372. * The identifier of the AppSync Source API. This is generated by the AppSync service. In most cases, source APIs (especially in your account) only require the API ID value or ARN of the source API. However, source APIs from other accounts (cross-account use cases) strictly require the full resource ARN of the source API.
  1373. */
  1374. sourceApiIdentifier: String;
  1375. /**
  1376. * The ID generated by the AppSync service for the source API association.
  1377. */
  1378. associationId: String;
  1379. }
  1380. export interface DisassociateMergedGraphqlApiResponse {
  1381. /**
  1382. * The state of the source API association.
  1383. */
  1384. sourceApiAssociationStatus?: SourceApiAssociationStatus;
  1385. }
  1386. export interface DisassociateSourceGraphqlApiRequest {
  1387. /**
  1388. * The identifier of the AppSync Merged API. This is generated by the AppSync service. In most cases, Merged APIs (especially in your account) only require the API ID value or ARN of the merged API. However, Merged APIs in other accounts (cross-account use cases) strictly require the full resource ARN of the merged API.
  1389. */
  1390. mergedApiIdentifier: String;
  1391. /**
  1392. * The ID generated by the AppSync service for the source API association.
  1393. */
  1394. associationId: String;
  1395. }
  1396. export interface DisassociateSourceGraphqlApiResponse {
  1397. /**
  1398. * The state of the source API association.
  1399. */
  1400. sourceApiAssociationStatus?: SourceApiAssociationStatus;
  1401. }
  1402. export type DomainName = string;
  1403. export interface DomainNameConfig {
  1404. /**
  1405. * The domain name.
  1406. */
  1407. domainName?: DomainName;
  1408. /**
  1409. * A description of the DomainName configuration.
  1410. */
  1411. description?: Description;
  1412. /**
  1413. * The Amazon Resource Name (ARN) of the certificate. This can be an Certificate Manager (ACM) certificate or an Identity and Access Management (IAM) server certificate.
  1414. */
  1415. certificateArn?: CertificateArn;
  1416. /**
  1417. * The domain name that AppSync provides.
  1418. */
  1419. appsyncDomainName?: String;
  1420. /**
  1421. * The ID of your Amazon Route 53 hosted zone.
  1422. */
  1423. hostedZoneId?: String;
  1424. }
  1425. export type DomainNameConfigs = DomainNameConfig[];
  1426. export interface DynamodbDataSourceConfig {
  1427. /**
  1428. * The table name.
  1429. */
  1430. tableName: String;
  1431. /**
  1432. * The Amazon Web Services Region.
  1433. */
  1434. awsRegion: String;
  1435. /**
  1436. * Set to TRUE to use Amazon Cognito credentials with this data source.
  1437. */
  1438. useCallerCredentials?: Boolean;
  1439. /**
  1440. * The DeltaSyncConfig for a versioned data source.
  1441. */
  1442. deltaSyncConfig?: DeltaSyncConfig;
  1443. /**
  1444. * Set to TRUE to use Conflict Detection and Resolution with this data source.
  1445. */
  1446. versioned?: Boolean;
  1447. }
  1448. export interface ElasticsearchDataSourceConfig {
  1449. /**
  1450. * The endpoint.
  1451. */
  1452. endpoint: String;
  1453. /**
  1454. * The Amazon Web Services Region.
  1455. */
  1456. awsRegion: String;
  1457. }
  1458. export interface EnhancedMetricsConfig {
  1459. /**
  1460. * Controls how resolver metrics will be emitted to CloudWatch. Resolver metrics include: GraphQL errors: The number of GraphQL errors that occurred. Requests: The number of invocations that occurred during a request. Latency: The time to complete a resolver invocation. Cache hits: The number of cache hits during a request. Cache misses: The number of cache misses during a request. These metrics can be emitted to CloudWatch per resolver or for all resolvers in the request. Metrics will be recorded by API ID and resolver name. resolverLevelMetricsBehavior accepts one of these values at a time: FULL_REQUEST_RESOLVER_METRICS: Records and emits metric data for all resolvers in the request. PER_RESOLVER_METRICS: Records and emits metric data for resolvers that have the metricsConfig value set to ENABLED.
  1461. */
  1462. resolverLevelMetricsBehavior: ResolverLevelMetricsBehavior;
  1463. /**
  1464. * Controls how data source metrics will be emitted to CloudWatch. Data source metrics include: Requests: The number of invocations that occured during a request. Latency: The time to complete a data source invocation. Errors: The number of errors that occurred during a data source invocation. These metrics can be emitted to CloudWatch per data source or for all data sources in the request. Metrics will be recorded by API ID and data source name. dataSourceLevelMetricsBehavior accepts one of these values at a time: FULL_REQUEST_DATA_SOURCE_METRICS: Records and emits metric data for all data sources in the request. PER_DATA_SOURCE_METRICS: Records and emits metric data for data sources that have the metricsConfig value set to ENABLED.
  1465. */
  1466. dataSourceLevelMetricsBehavior: DataSourceLevelMetricsBehavior;
  1467. /**
  1468. * Controls how operation metrics will be emitted to CloudWatch. Operation metrics include: Requests: The number of times a specified GraphQL operation was called. GraphQL errors: The number of GraphQL errors that occurred during a specified GraphQL operation. Metrics will be recorded by API ID and operation name. You can set the value to ENABLED or DISABLED.
  1469. */
  1470. operationLevelMetricsConfig: OperationLevelMetricsConfig;
  1471. }
  1472. export type EnvironmentVariableKey = string;
  1473. export type EnvironmentVariableMap = {[key: string]: EnvironmentVariableValue};
  1474. export type EnvironmentVariableValue = string;
  1475. export interface ErrorDetail {
  1476. /**
  1477. * The error payload.
  1478. */
  1479. message?: ErrorMessage;
  1480. }
  1481. export type ErrorMessage = string;
  1482. export interface EvaluateCodeErrorDetail {
  1483. /**
  1484. * The error payload.
  1485. */
  1486. message?: ErrorMessage;
  1487. /**
  1488. * Contains the list of CodeError objects.
  1489. */
  1490. codeErrors?: CodeErrors;
  1491. }
  1492. export interface EvaluateCodeRequest {
  1493. /**
  1494. * The runtime to be used when evaluating the code. Currently, only the APPSYNC_JS runtime is supported.
  1495. */
  1496. runtime: AppSyncRuntime;
  1497. /**
  1498. * The code definition to be evaluated. Note that code and runtime are both required for this action. The runtime value must be APPSYNC_JS.
  1499. */
  1500. code: Code;
  1501. /**
  1502. * The map that holds all of the contextual information for your resolver invocation. A context is required for this action.
  1503. */
  1504. context: Context;
  1505. /**
  1506. * The function within the code to be evaluated. If provided, the valid values are request and response.
  1507. */
  1508. function?: String;
  1509. }
  1510. export interface EvaluateCodeResponse {
  1511. /**
  1512. * The result of the evaluation operation.
  1513. */
  1514. evaluationResult?: EvaluationResult;
  1515. /**
  1516. * Contains the payload of the response error.
  1517. */
  1518. error?: EvaluateCodeErrorDetail;
  1519. /**
  1520. * A list of logs that were generated by calls to util.log.info and util.log.error in the evaluated code.
  1521. */
  1522. logs?: Logs;
  1523. }
  1524. export interface EvaluateMappingTemplateRequest {
  1525. /**
  1526. * The mapping template; this can be a request or response template. A template is required for this action.
  1527. */
  1528. template: Template;
  1529. /**
  1530. * The map that holds all of the contextual information for your resolver invocation. A context is required for this action.
  1531. */
  1532. context: Context;
  1533. }
  1534. export interface EvaluateMappingTemplateResponse {
  1535. /**
  1536. * The mapping template; this can be a request or response template.
  1537. */
  1538. evaluationResult?: EvaluationResult;
  1539. /**
  1540. * The ErrorDetail object.
  1541. */
  1542. error?: ErrorDetail;
  1543. /**
  1544. * A list of logs that were generated by calls to util.log.info and util.log.error in the evaluated code.
  1545. */
  1546. logs?: Logs;
  1547. }
  1548. export type EvaluationResult = string;
  1549. export interface EventBridgeDataSourceConfig {
  1550. /**
  1551. * The ARN of the event bus. For more information about event buses, see Amazon EventBridge event buses.
  1552. */
  1553. eventBusArn: String;
  1554. }
  1555. export type FieldLogLevel = "NONE"|"ERROR"|"ALL"|string;
  1556. export interface FlushApiCacheRequest {
  1557. /**
  1558. * The API ID.
  1559. */
  1560. apiId: String;
  1561. }
  1562. export interface FlushApiCacheResponse {
  1563. }
  1564. export interface FunctionConfiguration {
  1565. /**
  1566. * A unique ID representing the Function object.
  1567. */
  1568. functionId?: String;
  1569. /**
  1570. * The Amazon Resource Name (ARN) of the Function object.
  1571. */
  1572. functionArn?: String;
  1573. /**
  1574. * The name of the Function object.
  1575. */
  1576. name?: ResourceName;
  1577. /**
  1578. * The Function description.
  1579. */
  1580. description?: String;
  1581. /**
  1582. * The name of the DataSource.
  1583. */
  1584. dataSourceName?: ResourceName;
  1585. /**
  1586. * The Function request mapping template. Functions support only the 2018-05-29 version of the request mapping template.
  1587. */
  1588. requestMappingTemplate?: MappingTemplate;
  1589. /**
  1590. * The Function response mapping template.
  1591. */
  1592. responseMappingTemplate?: MappingTemplate;
  1593. /**
  1594. * The version of the request mapping template. Currently, only the 2018-05-29 version of the template is supported.
  1595. */
  1596. functionVersion?: String;
  1597. syncConfig?: SyncConfig;
  1598. /**
  1599. * The maximum batching size for a resolver.
  1600. */
  1601. maxBatchSize?: MaxBatchSize;
  1602. runtime?: AppSyncRuntime;
  1603. /**
  1604. * The function code that contains the request and response functions. When code is used, the runtime is required. The runtime value must be APPSYNC_JS.
  1605. */
  1606. code?: Code;
  1607. }
  1608. export type Functions = FunctionConfiguration[];
  1609. export type FunctionsIds = String[];
  1610. export interface GetApiAssociationRequest {
  1611. /**
  1612. * The domain name.
  1613. */
  1614. domainName: DomainName;
  1615. }
  1616. export interface GetApiAssociationResponse {
  1617. /**
  1618. * The ApiAssociation object.
  1619. */
  1620. apiAssociation?: ApiAssociation;
  1621. }
  1622. export interface GetApiCacheRequest {
  1623. /**
  1624. * The API ID.
  1625. */
  1626. apiId: String;
  1627. }
  1628. export interface GetApiCacheResponse {
  1629. /**
  1630. * The ApiCache object.
  1631. */
  1632. apiCache?: ApiCache;
  1633. }
  1634. export interface GetDataSourceIntrospectionRequest {
  1635. /**
  1636. * The introspection ID. Each introspection contains a unique ID that can be used to reference the instrospection record.
  1637. */
  1638. introspectionId: String;
  1639. /**
  1640. * A boolean flag that determines whether SDL should be generated for introspected types or not. If set to true, each model will contain an sdl property that contains the SDL for that type. The SDL only contains the type data and no additional metadata or directives.
  1641. */
  1642. includeModelsSDL?: Boolean;
  1643. /**
  1644. * Determines the number of types to be returned in a single response before paginating. This value is typically taken from nextToken value from the previous response.
  1645. */
  1646. nextToken?: PaginationToken;
  1647. /**
  1648. * The maximum number of introspected types that will be returned in a single response.
  1649. */
  1650. maxResults?: MaxResults;
  1651. }
  1652. export interface GetDataSourceIntrospectionResponse {
  1653. /**
  1654. * The introspection ID. Each introspection contains a unique ID that can be used to reference the instrospection record.
  1655. */
  1656. introspectionId?: String;
  1657. /**
  1658. * The status of the introspection during retrieval. By default, when a new instrospection is being retrieved, the status will be set to PROCESSING. Once the operation has been completed, the status will change to SUCCESS or FAILED depending on how the data was parsed. A FAILED operation will return an error and its details as an introspectionStatusDetail.
  1659. */
  1660. introspectionStatus?: DataSourceIntrospectionStatus;
  1661. /**
  1662. * The error detail field. When a FAILED introspectionStatus is returned, the introspectionStatusDetail will also return the exact error that was generated during the operation.
  1663. */
  1664. introspectionStatusDetail?: String;
  1665. /**
  1666. * The DataSourceIntrospectionResult object data.
  1667. */
  1668. introspectionResult?: DataSourceIntrospectionResult;
  1669. }
  1670. export interface GetDataSourceRequest {
  1671. /**
  1672. * The API ID.
  1673. */
  1674. apiId: String;
  1675. /**
  1676. * The name of the data source.
  1677. */
  1678. name: ResourceName;
  1679. }
  1680. export interface GetDataSourceResponse {
  1681. /**
  1682. * The DataSource object.
  1683. */
  1684. dataSource?: DataSource;
  1685. }
  1686. export interface GetDomainNameRequest {
  1687. /**
  1688. * The domain name.
  1689. */
  1690. domainName: DomainName;
  1691. }
  1692. export interface GetDomainNameResponse {
  1693. /**
  1694. * The configuration for the DomainName.
  1695. */
  1696. domainNameConfig?: DomainNameConfig;
  1697. }
  1698. export interface GetFunctionRequest {
  1699. /**
  1700. * The GraphQL API ID.
  1701. */
  1702. apiId: String;
  1703. /**
  1704. * The Function ID.
  1705. */
  1706. functionId: ResourceName;
  1707. }
  1708. export interface GetFunctionResponse {
  1709. /**
  1710. * The Function object.
  1711. */
  1712. functionConfiguration?: FunctionConfiguration;
  1713. }
  1714. export interface GetGraphqlApiEnvironmentVariablesRequest {
  1715. /**
  1716. * The ID of the API from which the environmental variable list will be retrieved.
  1717. */
  1718. apiId: String;
  1719. }
  1720. export interface GetGraphqlApiEnvironmentVariablesResponse {
  1721. /**
  1722. * The payload containing each environmental variable in the "key" : "value" format.
  1723. */
  1724. environmentVariables?: EnvironmentVariableMap;
  1725. }
  1726. export interface GetGraphqlApiRequest {
  1727. /**
  1728. * The API ID for the GraphQL API.
  1729. */
  1730. apiId: String;
  1731. }
  1732. export interface GetGraphqlApiResponse {
  1733. /**
  1734. * The GraphqlApi object.
  1735. */
  1736. graphqlApi?: GraphqlApi;
  1737. }
  1738. export interface GetIntrospectionSchemaRequest {
  1739. /**
  1740. * The API ID.
  1741. */
  1742. apiId: String;
  1743. /**
  1744. * The schema format: SDL or JSON.
  1745. */
  1746. format: OutputType;
  1747. /**
  1748. * A flag that specifies whether the schema introspection should contain directives.
  1749. */
  1750. includeDirectives?: BooleanValue;
  1751. }
  1752. export interface GetIntrospectionSchemaResponse {
  1753. /**
  1754. * The schema, in GraphQL Schema Definition Language (SDL) format. For more information, see the GraphQL SDL documentation.
  1755. */
  1756. schema?: _Blob;
  1757. }
  1758. export interface GetResolverRequest {
  1759. /**
  1760. * The API ID.
  1761. */
  1762. apiId: String;
  1763. /**
  1764. * The resolver type name.
  1765. */
  1766. typeName: ResourceName;
  1767. /**
  1768. * The resolver field name.
  1769. */
  1770. fieldName: ResourceName;
  1771. }
  1772. export interface GetResolverResponse {
  1773. /**
  1774. * The Resolver object.
  1775. */
  1776. resolver?: Resolver;
  1777. }
  1778. export interface GetSchemaCreationStatusRequest {
  1779. /**
  1780. * The API ID.
  1781. */
  1782. apiId: String;
  1783. }
  1784. export interface GetSchemaCreationStatusResponse {
  1785. /**
  1786. * The current state of the schema (PROCESSING, FAILED, SUCCESS, or NOT_APPLICABLE). When the schema is in the ACTIVE state, you can add data.
  1787. */
  1788. status?: SchemaStatus;
  1789. /**
  1790. * Detailed information about the status of the schema creation operation.
  1791. */
  1792. details?: String;
  1793. }
  1794. export interface GetSourceApiAssociationRequest {
  1795. /**
  1796. * The identifier of the AppSync Merged API. This is generated by the AppSync service. In most cases, Merged APIs (especially in your account) only require the API ID value or ARN of the merged API. However, Merged APIs in other accounts (cross-account use cases) strictly require the full resource ARN of the merged API.
  1797. */
  1798. mergedApiIdentifier: String;
  1799. /**
  1800. * The ID generated by the AppSync service for the source API association.
  1801. */
  1802. associationId: String;
  1803. }
  1804. export interface GetSourceApiAssociationResponse {
  1805. /**
  1806. * The SourceApiAssociation object data.
  1807. */
  1808. sourceApiAssociation?: SourceApiAssociation;
  1809. }
  1810. export interface GetTypeRequest {
  1811. /**
  1812. * The API ID.
  1813. */
  1814. apiId: String;
  1815. /**
  1816. * The type name.
  1817. */
  1818. typeName: ResourceName;
  1819. /**
  1820. * The type format: SDL or JSON.
  1821. */
  1822. format: TypeDefinitionFormat;
  1823. }
  1824. export interface GetTypeResponse {
  1825. /**
  1826. * The Type object.
  1827. */
  1828. type?: Type;
  1829. }
  1830. export type GraphQLApiIntrospectionConfig = "ENABLED"|"DISABLED"|string;
  1831. export type GraphQLApiType = "GRAPHQL"|"MERGED"|string;
  1832. export type GraphQLApiVisibility = "GLOBAL"|"PRIVATE"|string;
  1833. export interface GraphqlApi {
  1834. /**
  1835. * The API name.
  1836. */
  1837. name?: ResourceName;
  1838. /**
  1839. * The API ID.
  1840. */
  1841. apiId?: String;
  1842. /**
  1843. * The authentication type.
  1844. */
  1845. authenticationType?: AuthenticationType;
  1846. /**
  1847. * The Amazon CloudWatch Logs configuration.
  1848. */
  1849. logConfig?: LogConfig;
  1850. /**
  1851. * The Amazon Cognito user pool configuration.
  1852. */
  1853. userPoolConfig?: UserPoolConfig;
  1854. /**
  1855. * The OpenID Connect configuration.
  1856. */
  1857. openIDConnectConfig?: OpenIDConnectConfig;
  1858. /**
  1859. * The Amazon Resource Name (ARN).
  1860. */
  1861. arn?: String;
  1862. /**
  1863. * The URIs.
  1864. */
  1865. uris?: MapOfStringToString;
  1866. /**
  1867. * The tags.
  1868. */
  1869. tags?: TagMap;
  1870. /**
  1871. * A list of additional authentication providers for the GraphqlApi API.
  1872. */
  1873. additionalAuthenticationProviders?: AdditionalAuthenticationProviders;
  1874. /**
  1875. * A flag indicating whether to use X-Ray tracing for this GraphqlApi.
  1876. */
  1877. xrayEnabled?: Boolean;
  1878. /**
  1879. * The ARN of the WAF access control list (ACL) associated with this GraphqlApi, if one exists.
  1880. */
  1881. wafWebAclArn?: String;
  1882. /**
  1883. * Configuration for Lambda function authorization.
  1884. */
  1885. lambdaAuthorizerConfig?: LambdaAuthorizerConfig;
  1886. /**
  1887. * The DNS records for the API.
  1888. */
  1889. dns?: MapOfStringToString;
  1890. /**
  1891. * Sets the value of the GraphQL API to public (GLOBAL) or private (PRIVATE). If no value is provided, the visibility will be set to GLOBAL by default. This value cannot be changed once the API has been created.
  1892. */
  1893. visibility?: GraphQLApiVisibility;
  1894. /**
  1895. * The value that indicates whether the GraphQL API is a standard API (GRAPHQL) or merged API (MERGED).
  1896. */
  1897. apiType?: GraphQLApiType;
  1898. /**
  1899. * The Identity and Access Management service role ARN for a merged API. The AppSync service assumes this role on behalf of the Merged API to validate access to source APIs at runtime and to prompt the AUTO_MERGE to update the merged API endpoint with the source API changes automatically.
  1900. */
  1901. mergedApiExecutionRoleArn?: String;
  1902. /**
  1903. * The account owner of the GraphQL API.
  1904. */
  1905. owner?: String;
  1906. /**
  1907. * The owner contact information for an API resource. This field accepts any string input with a length of 0 - 256 characters.
  1908. */
  1909. ownerContact?: String;
  1910. /**
  1911. * Sets the value of the GraphQL API to enable (ENABLED) or disable (DISABLED) introspection. If no value is provided, the introspection configuration will be set to ENABLED by default. This field will produce an error if the operation attempts to use the introspection feature while this field is disabled. For more information about introspection, see GraphQL introspection.
  1912. */
  1913. introspectionConfig?: GraphQLApiIntrospectionConfig;
  1914. /**
  1915. * The maximum depth a query can have in a single request. Depth refers to the amount of nested levels allowed in the body of query. The default value is 0 (or unspecified), which indicates there's no depth limit. If you set a limit, it can be between 1 and 75 nested levels. This field will produce a limit error if the operation falls out of bounds. Note that fields can still be set to nullable or non-nullable. If a non-nullable field produces an error, the error will be thrown upwards to the first nullable field available.
  1916. */
  1917. queryDepthLimit?: QueryDepthLimit;
  1918. /**
  1919. * The maximum number of resolvers that can be invoked in a single request. The default value is 0 (or unspecified), which will set the limit to 10000. When specified, the limit value can be between 1 and 10000. This field will produce a limit error if the operation falls out of bounds.
  1920. */
  1921. resolverCountLimit?: ResolverCountLimit;
  1922. /**
  1923. * The enhancedMetricsConfig object.
  1924. */
  1925. enhancedMetricsConfig?: EnhancedMetricsConfig;
  1926. }
  1927. export type GraphqlApis = GraphqlApi[];
  1928. export interface HttpDataSourceConfig {
  1929. /**
  1930. * The HTTP URL endpoint. You can specify either the domain name or IP, and port combination, and the URL scheme must be HTTP or HTTPS. If you don't specify the port, AppSync uses the default port 80 for the HTTP endpoint and port 443 for HTTPS endpoints.
  1931. */
  1932. endpoint?: String;
  1933. /**
  1934. * The authorization configuration in case the HTTP endpoint requires authorization.
  1935. */
  1936. authorizationConfig?: AuthorizationConfig;
  1937. }
  1938. export interface LambdaAuthorizerConfig {
  1939. /**
  1940. * The number of seconds a response should be cached for. The default is 0 seconds, which disables caching. If you don't specify a value for authorizerResultTtlInSeconds, the default value is used. The maximum value is one hour (3600 seconds). The Lambda function can override this by returning a ttlOverride key in its response.
  1941. */
  1942. authorizerResultTtlInSeconds?: TTL;
  1943. /**
  1944. * The Amazon Resource Name (ARN) of the Lambda function to be called for authorization. This can be a standard Lambda ARN, a version ARN (.../v3), or an alias ARN. Note: This Lambda function must have the following resource-based policy assigned to it. When configuring Lambda authorizers in the console, this is done for you. To use the Command Line Interface (CLI), run the following: aws lambda add-permission --function-name "arn:aws:lambda:us-east-2:111122223333:function:my-function" --statement-id "appsync" --principal appsync.amazonaws.com --action lambda:InvokeFunction
  1945. */
  1946. authorizerUri: String;
  1947. /**
  1948. * A regular expression for validation of tokens before the Lambda function is called.
  1949. */
  1950. identityValidationExpression?: String;
  1951. }
  1952. export interface LambdaConflictHandlerConfig {
  1953. /**
  1954. * The Amazon Resource Name (ARN) for the Lambda function to use as the Conflict Handler.
  1955. */
  1956. lambdaConflictHandlerArn?: String;
  1957. }
  1958. export interface LambdaDataSourceConfig {
  1959. /**
  1960. * The Amazon Resource Name (ARN) for the Lambda function.
  1961. */
  1962. lambdaFunctionArn: String;
  1963. }
  1964. export interface ListApiKeysRequest {
  1965. /**
  1966. * The API ID.
  1967. */
  1968. apiId: String;
  1969. /**
  1970. * 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.
  1971. */
  1972. nextToken?: PaginationToken;
  1973. /**
  1974. * The maximum number of results that you want the request to return.
  1975. */
  1976. maxResults?: MaxResults;
  1977. }
  1978. export interface ListApiKeysResponse {
  1979. /**
  1980. * The ApiKey objects.
  1981. */
  1982. apiKeys?: ApiKeys;
  1983. /**
  1984. * An identifier to pass in the next request to this operation to return the next set of items in the list.
  1985. */
  1986. nextToken?: PaginationToken;
  1987. }
  1988. export interface ListDataSourcesRequest {
  1989. /**
  1990. * The API ID.
  1991. */
  1992. apiId: String;
  1993. /**
  1994. * 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.
  1995. */
  1996. nextToken?: PaginationToken;
  1997. /**
  1998. * The maximum number of results that you want the request to return.
  1999. */
  2000. maxResults?: MaxResults;
  2001. }
  2002. export interface ListDataSourcesResponse {
  2003. /**
  2004. * The DataSource objects.
  2005. */
  2006. dataSources?: DataSources;
  2007. /**
  2008. * An identifier to pass in the next request to this operation to return the next set of items in the list.
  2009. */
  2010. nextToken?: PaginationToken;
  2011. }
  2012. export interface ListDomainNamesRequest {
  2013. /**
  2014. * 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.
  2015. */
  2016. nextToken?: PaginationToken;
  2017. /**
  2018. * The maximum number of results that you want the request to return.
  2019. */
  2020. maxResults?: MaxResults;
  2021. }
  2022. export interface ListDomainNamesResponse {
  2023. /**
  2024. * Lists configurations for multiple domain names.
  2025. */
  2026. domainNameConfigs?: DomainNameConfigs;
  2027. /**
  2028. * 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.
  2029. */
  2030. nextToken?: PaginationToken;
  2031. }
  2032. export interface ListFunctionsRequest {
  2033. /**
  2034. * The GraphQL API ID.
  2035. */
  2036. apiId: String;
  2037. /**
  2038. * 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.
  2039. */
  2040. nextToken?: PaginationToken;
  2041. /**
  2042. * The maximum number of results that you want the request to return.
  2043. */
  2044. maxResults?: MaxResults;
  2045. }
  2046. export interface ListFunctionsResponse {
  2047. /**
  2048. * A list of Function objects.
  2049. */
  2050. functions?: Functions;
  2051. /**
  2052. * 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.
  2053. */
  2054. nextToken?: PaginationToken;
  2055. }
  2056. export interface ListGraphqlApisRequest {
  2057. /**
  2058. * 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.
  2059. */
  2060. nextToken?: PaginationToken;
  2061. /**
  2062. * The maximum number of results that you want the request to return.
  2063. */
  2064. maxResults?: MaxResults;
  2065. /**
  2066. * The value that indicates whether the GraphQL API is a standard API (GRAPHQL) or merged API (MERGED).
  2067. */
  2068. apiType?: GraphQLApiType;
  2069. /**
  2070. * The account owner of the GraphQL API.
  2071. */
  2072. owner?: Ownership;
  2073. }
  2074. export interface ListGraphqlApisResponse {
  2075. /**
  2076. * The GraphqlApi objects.
  2077. */
  2078. graphqlApis?: GraphqlApis;
  2079. /**
  2080. * An identifier to pass in the next request to this operation to return the next set of items in the list.
  2081. */
  2082. nextToken?: PaginationToken;
  2083. }
  2084. export interface ListResolversByFunctionRequest {
  2085. /**
  2086. * The API ID.
  2087. */
  2088. apiId: String;
  2089. /**
  2090. * The function ID.
  2091. */
  2092. functionId: String;
  2093. /**
  2094. * 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.
  2095. */
  2096. nextToken?: PaginationToken;
  2097. /**
  2098. * The maximum number of results that you want the request to return.
  2099. */
  2100. maxResults?: MaxResults;
  2101. }
  2102. export interface ListResolversByFunctionResponse {
  2103. /**
  2104. * The list of resolvers.
  2105. */
  2106. resolvers?: Resolvers;
  2107. /**
  2108. * An identifier that you can use to return the next set of items in the list.
  2109. */
  2110. nextToken?: PaginationToken;
  2111. }
  2112. export interface ListResolversRequest {
  2113. /**
  2114. * The API ID.
  2115. */
  2116. apiId: String;
  2117. /**
  2118. * The type name.
  2119. */
  2120. typeName: String;
  2121. /**
  2122. * 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.
  2123. */
  2124. nextToken?: PaginationToken;
  2125. /**
  2126. * The maximum number of results that you want the request to return.
  2127. */
  2128. maxResults?: MaxResults;
  2129. }
  2130. export interface ListResolversResponse {
  2131. /**
  2132. * The Resolver objects.
  2133. */
  2134. resolvers?: Resolvers;
  2135. /**
  2136. * An identifier to pass in the next request to this operation to return the next set of items in the list.
  2137. */
  2138. nextToken?: PaginationToken;
  2139. }
  2140. export interface ListSourceApiAssociationsRequest {
  2141. /**
  2142. * The API ID.
  2143. */
  2144. apiId: String;
  2145. /**
  2146. * 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.
  2147. */
  2148. nextToken?: PaginationToken;
  2149. /**
  2150. * The maximum number of results that you want the request to return.
  2151. */
  2152. maxResults?: MaxResults;
  2153. }
  2154. export interface ListSourceApiAssociationsResponse {
  2155. /**
  2156. * The SourceApiAssociationSummary object data.
  2157. */
  2158. sourceApiAssociationSummaries?: SourceApiAssociationSummaryList;
  2159. /**
  2160. * 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.
  2161. */
  2162. nextToken?: PaginationToken;
  2163. }
  2164. export interface ListTagsForResourceRequest {
  2165. /**
  2166. * The GraphqlApi Amazon Resource Name (ARN).
  2167. */
  2168. resourceArn: ResourceArn;
  2169. }
  2170. export interface ListTagsForResourceResponse {
  2171. /**
  2172. * A TagMap object.
  2173. */
  2174. tags?: TagMap;
  2175. }
  2176. export interface ListTypesByAssociationRequest {
  2177. /**
  2178. * The identifier of the AppSync Merged API. This is generated by the AppSync service. In most cases, Merged APIs (especially in your account) only require the API ID value or ARN of the merged API. However, Merged APIs in other accounts (cross-account use cases) strictly require the full resource ARN of the merged API.
  2179. */
  2180. mergedApiIdentifier: String;
  2181. /**
  2182. * The ID generated by the AppSync service for the source API association.
  2183. */
  2184. associationId: String;
  2185. /**
  2186. * The format type.
  2187. */
  2188. format: TypeDefinitionFormat;
  2189. /**
  2190. * 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.
  2191. */
  2192. nextToken?: PaginationToken;
  2193. /**
  2194. * The maximum number of results that you want the request to return.
  2195. */
  2196. maxResults?: MaxResults;
  2197. }
  2198. export interface ListTypesByAssociationResponse {
  2199. /**
  2200. * The Type objects.
  2201. */
  2202. types?: TypeList;
  2203. /**
  2204. * 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.
  2205. */
  2206. nextToken?: PaginationToken;
  2207. }
  2208. export interface ListTypesRequest {
  2209. /**
  2210. * The API ID.
  2211. */
  2212. apiId: String;
  2213. /**
  2214. * The type format: SDL or JSON.
  2215. */
  2216. format: TypeDefinitionFormat;
  2217. /**
  2218. * 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.
  2219. */
  2220. nextToken?: PaginationToken;
  2221. /**
  2222. * The maximum number of results that you want the request to return.
  2223. */
  2224. maxResults?: MaxResults;
  2225. }
  2226. export interface ListTypesResponse {
  2227. /**
  2228. * The Type objects.
  2229. */
  2230. types?: TypeList;
  2231. /**
  2232. * An identifier to pass in the next request to this operation to return the next set of items in the list.
  2233. */
  2234. nextToken?: PaginationToken;
  2235. }
  2236. export interface LogConfig {
  2237. /**
  2238. * 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.
  2239. */
  2240. fieldLogLevel: FieldLogLevel;
  2241. /**
  2242. * The service role that AppSync assumes to publish to CloudWatch logs in your account.
  2243. */
  2244. cloudWatchLogsRoleArn: String;
  2245. /**
  2246. * Set to TRUE to exclude sections that contain information such as headers, context, and evaluated mapping templates, regardless of logging level.
  2247. */
  2248. excludeVerboseContent?: Boolean;
  2249. }
  2250. export type Logs = String[];
  2251. export type Long = number;
  2252. export type MapOfStringToString = {[key: string]: String};
  2253. export type MappingTemplate = string;
  2254. export type MaxBatchSize = number;
  2255. export type MaxResults = number;
  2256. export type MergeType = "MANUAL_MERGE"|"AUTO_MERGE"|string;
  2257. export interface OpenIDConnectConfig {
  2258. /**
  2259. * The issuer for the OIDC configuration. The issuer returned by discovery must exactly match the value of iss in the ID token.
  2260. */
  2261. issuer: String;
  2262. /**
  2263. * 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 that AppSync can validate against multiple client identifiers at a time.
  2264. */
  2265. clientId?: String;
  2266. /**
  2267. * The number of milliseconds that a token is valid after it's issued to a user.
  2268. */
  2269. iatTTL?: Long;
  2270. /**
  2271. * The number of milliseconds that a token is valid after being authenticated.
  2272. */
  2273. authTTL?: Long;
  2274. }
  2275. export interface OpenSearchServiceDataSourceConfig {
  2276. /**
  2277. * The endpoint.
  2278. */
  2279. endpoint: String;
  2280. /**
  2281. * The Amazon Web Services Region.
  2282. */
  2283. awsRegion: String;
  2284. }
  2285. export type OperationLevelMetricsConfig = "ENABLED"|"DISABLED"|string;
  2286. export type OutputType = "SDL"|"JSON"|string;
  2287. export type Ownership = "CURRENT_ACCOUNT"|"OTHER_ACCOUNTS"|string;
  2288. export type PaginationToken = string;
  2289. export interface PipelineConfig {
  2290. /**
  2291. * A list of Function objects.
  2292. */
  2293. functions?: FunctionsIds;
  2294. }
  2295. export interface PutGraphqlApiEnvironmentVariablesRequest {
  2296. /**
  2297. * The ID of the API to which the environmental variable list will be written.
  2298. */
  2299. apiId: String;
  2300. /**
  2301. * The list of environmental variables to add to the API. When creating an environmental variable key-value pair, it must follow the additional constraints below: Keys must begin with a letter. Keys must be at least two characters long. Keys can only contain letters, numbers, and the underscore character (_). Values can be up to 512 characters long. You can configure up to 50 key-value pairs in a GraphQL API. You can create a list of environmental variables by adding it to the environmentVariables payload as a list in the format {"key1":"value1","key2":"value2", …}. Note that each call of the PutGraphqlApiEnvironmentVariables action will result in the overwriting of the existing environmental variable list of that API. This means the existing environmental variables will be lost. To avoid this, you must include all existing and new environmental variables in the list each time you call this action.
  2302. */
  2303. environmentVariables: EnvironmentVariableMap;
  2304. }
  2305. export interface PutGraphqlApiEnvironmentVariablesResponse {
  2306. /**
  2307. * The payload containing each environmental variable in the "key" : "value" format.
  2308. */
  2309. environmentVariables?: EnvironmentVariableMap;
  2310. }
  2311. export type QueryDepthLimit = number;
  2312. export interface RdsDataApiConfig {
  2313. /**
  2314. * The resource ARN of the RDS cluster.
  2315. */
  2316. resourceArn: RdsDataApiConfigResourceArn;
  2317. /**
  2318. * The secret's ARN that was obtained from Secrets Manager. A secret consists of secret information, the secret value, plus metadata about the secret. A secret value can be a string or binary. It typically includes the ARN, secret name and description, policies, tags, encryption key from the Key Management Service, and key rotation data.
  2319. */
  2320. secretArn: RdsDataApiConfigSecretArn;
  2321. /**
  2322. * The name of the database in the cluster.
  2323. */
  2324. databaseName: RdsDataApiConfigDatabaseName;
  2325. }
  2326. export type RdsDataApiConfigDatabaseName = string;
  2327. export type RdsDataApiConfigResourceArn = string;
  2328. export type RdsDataApiConfigSecretArn = string;
  2329. export interface RdsHttpEndpointConfig {
  2330. /**
  2331. * Amazon Web Services Region for Amazon RDS HTTP endpoint.
  2332. */
  2333. awsRegion?: String;
  2334. /**
  2335. * Amazon RDS cluster Amazon Resource Name (ARN).
  2336. */
  2337. dbClusterIdentifier?: String;
  2338. /**
  2339. * Logical database name.
  2340. */
  2341. databaseName?: String;
  2342. /**
  2343. * Logical schema name.
  2344. */
  2345. schema?: String;
  2346. /**
  2347. * Amazon Web Services secret store Amazon Resource Name (ARN) for database credentials.
  2348. */
  2349. awsSecretStoreArn?: String;
  2350. }
  2351. export interface RelationalDatabaseDataSourceConfig {
  2352. /**
  2353. * Source type for the relational database. RDS_HTTP_ENDPOINT: The relational database source type is an Amazon Relational Database Service (Amazon RDS) HTTP endpoint.
  2354. */
  2355. relationalDatabaseSourceType?: RelationalDatabaseSourceType;
  2356. /**
  2357. * Amazon RDS HTTP endpoint settings.
  2358. */
  2359. rdsHttpEndpointConfig?: RdsHttpEndpointConfig;
  2360. }
  2361. export type RelationalDatabaseSourceType = "RDS_HTTP_ENDPOINT"|string;
  2362. export interface Resolver {
  2363. /**
  2364. * The resolver type name.
  2365. */
  2366. typeName?: ResourceName;
  2367. /**
  2368. * The resolver field name.
  2369. */
  2370. fieldName?: ResourceName;
  2371. /**
  2372. * The resolver data source name.
  2373. */
  2374. dataSourceName?: ResourceName;
  2375. /**
  2376. * The resolver Amazon Resource Name (ARN).
  2377. */
  2378. resolverArn?: String;
  2379. /**
  2380. * The request mapping template.
  2381. */
  2382. requestMappingTemplate?: MappingTemplate;
  2383. /**
  2384. * The response mapping template.
  2385. */
  2386. responseMappingTemplate?: MappingTemplate;
  2387. /**
  2388. * The resolver type. UNIT: A UNIT resolver type. A UNIT resolver is the default resolver type. You can use a UNIT resolver to run a GraphQL query against a single data source. PIPELINE: A PIPELINE resolver type. You can use a PIPELINE resolver to invoke a series of Function objects in a serial manner. You can use a pipeline resolver to run a GraphQL query against multiple data sources.
  2389. */
  2390. kind?: ResolverKind;
  2391. /**
  2392. * The PipelineConfig.
  2393. */
  2394. pipelineConfig?: PipelineConfig;
  2395. /**
  2396. * The SyncConfig for a resolver attached to a versioned data source.
  2397. */
  2398. syncConfig?: SyncConfig;
  2399. /**
  2400. * The caching configuration for the resolver.
  2401. */
  2402. cachingConfig?: CachingConfig;
  2403. /**
  2404. * The maximum batching size for a resolver.
  2405. */
  2406. maxBatchSize?: MaxBatchSize;
  2407. runtime?: AppSyncRuntime;
  2408. /**
  2409. * The resolver code that contains the request and response functions. When code is used, the runtime is required. The runtime value must be APPSYNC_JS.
  2410. */
  2411. code?: Code;
  2412. /**
  2413. * Enables or disables enhanced resolver metrics for specified resolvers. Note that metricsConfig won't be used unless the resolverLevelMetricsBehavior value is set to PER_RESOLVER_METRICS. If the resolverLevelMetricsBehavior is set to FULL_REQUEST_RESOLVER_METRICS instead, metricsConfig will be ignored. However, you can still set its value. metricsConfig can be ENABLED or DISABLED.
  2414. */
  2415. metricsConfig?: ResolverLevelMetricsConfig;
  2416. }
  2417. export type ResolverCountLimit = number;
  2418. export type ResolverKind = "UNIT"|"PIPELINE"|string;
  2419. export type ResolverLevelMetricsBehavior = "FULL_REQUEST_RESOLVER_METRICS"|"PER_RESOLVER_METRICS"|string;
  2420. export type ResolverLevelMetricsConfig = "ENABLED"|"DISABLED"|string;
  2421. export type Resolvers = Resolver[];
  2422. export type ResourceArn = string;
  2423. export type ResourceName = string;
  2424. export type RuntimeName = "APPSYNC_JS"|string;
  2425. export type SchemaStatus = "PROCESSING"|"ACTIVE"|"DELETING"|"FAILED"|"SUCCESS"|"NOT_APPLICABLE"|string;
  2426. export interface SourceApiAssociation {
  2427. /**
  2428. * The ID generated by the AppSync service for the source API association.
  2429. */
  2430. associationId?: String;
  2431. /**
  2432. * The Amazon Resource Name (ARN) of the source API association.
  2433. */
  2434. associationArn?: String;
  2435. /**
  2436. * The ID of the AppSync source API.
  2437. */
  2438. sourceApiId?: String;
  2439. /**
  2440. * The Amazon Resource Name (ARN) of the AppSync source API.
  2441. */
  2442. sourceApiArn?: String;
  2443. /**
  2444. * The Amazon Resource Name (ARN) of the AppSync Merged API.
  2445. */
  2446. mergedApiArn?: String;
  2447. /**
  2448. * The ID of the AppSync Merged API.
  2449. */
  2450. mergedApiId?: String;
  2451. /**
  2452. * The description field.
  2453. */
  2454. description?: String;
  2455. /**
  2456. * The SourceApiAssociationConfig object data.
  2457. */
  2458. sourceApiAssociationConfig?: SourceApiAssociationConfig;
  2459. /**
  2460. * The state of the source API association.
  2461. */
  2462. sourceApiAssociationStatus?: SourceApiAssociationStatus;
  2463. /**
  2464. * The detailed message related to the current state of the source API association.
  2465. */
  2466. sourceApiAssociationStatusDetail?: String;
  2467. /**
  2468. * The datetime value of the last successful merge of the source API association. The result will be in UTC format and your local time zone.
  2469. */
  2470. lastSuccessfulMergeDate?: _Date;
  2471. }
  2472. export interface SourceApiAssociationConfig {
  2473. /**
  2474. * The property that indicates which merging option is enabled in the source API association. Valid merge types are MANUAL_MERGE (default) and AUTO_MERGE. Manual merges are the default behavior and require the user to trigger any changes from the source APIs to the merged API manually. Auto merges subscribe the merged API to the changes performed on the source APIs so that any change in the source APIs are also made to the merged API. Auto merges use MergedApiExecutionRoleArn to perform merge operations.
  2475. */
  2476. mergeType?: MergeType;
  2477. }
  2478. export type SourceApiAssociationStatus = "MERGE_SCHEDULED"|"MERGE_FAILED"|"MERGE_SUCCESS"|"MERGE_IN_PROGRESS"|"AUTO_MERGE_SCHEDULE_FAILED"|"DELETION_SCHEDULED"|"DELETION_IN_PROGRESS"|"DELETION_FAILED"|string;
  2479. export interface SourceApiAssociationSummary {
  2480. /**
  2481. * The ID generated by the AppSync service for the source API association.
  2482. */
  2483. associationId?: String;
  2484. /**
  2485. * The Amazon Resource Name (ARN) of the source API association.
  2486. */
  2487. associationArn?: String;
  2488. /**
  2489. * The ID of the AppSync source API.
  2490. */
  2491. sourceApiId?: String;
  2492. /**
  2493. * The Amazon Resource Name (ARN) of the AppSync Source API.
  2494. */
  2495. sourceApiArn?: String;
  2496. /**
  2497. * The ID of the AppSync Merged API.
  2498. */
  2499. mergedApiId?: String;
  2500. /**
  2501. * The Amazon Resource Name (ARN) of the AppSync Merged API.
  2502. */
  2503. mergedApiArn?: String;
  2504. /**
  2505. * The description field.
  2506. */
  2507. description?: String;
  2508. }
  2509. export type SourceApiAssociationSummaryList = SourceApiAssociationSummary[];
  2510. export interface StartDataSourceIntrospectionRequest {
  2511. /**
  2512. * The rdsDataApiConfig object data.
  2513. */
  2514. rdsDataApiConfig?: RdsDataApiConfig;
  2515. }
  2516. export interface StartDataSourceIntrospectionResponse {
  2517. /**
  2518. * The introspection ID. Each introspection contains a unique ID that can be used to reference the instrospection record.
  2519. */
  2520. introspectionId?: String;
  2521. /**
  2522. * The status of the introspection during creation. By default, when a new instrospection has been created, the status will be set to PROCESSING. Once the operation has been completed, the status will change to SUCCESS or FAILED depending on how the data was parsed. A FAILED operation will return an error and its details as an introspectionStatusDetail.
  2523. */
  2524. introspectionStatus?: DataSourceIntrospectionStatus;
  2525. /**
  2526. * The error detail field. When a FAILED introspectionStatus is returned, the introspectionStatusDetail will also return the exact error that was generated during the operation.
  2527. */
  2528. introspectionStatusDetail?: String;
  2529. }
  2530. export interface StartSchemaCreationRequest {
  2531. /**
  2532. * The API ID.
  2533. */
  2534. apiId: String;
  2535. /**
  2536. * The schema definition, in GraphQL schema language format.
  2537. */
  2538. definition: _Blob;
  2539. }
  2540. export interface StartSchemaCreationResponse {
  2541. /**
  2542. * The current state of the schema (PROCESSING, FAILED, SUCCESS, or NOT_APPLICABLE). When the schema is in the ACTIVE state, you can add data.
  2543. */
  2544. status?: SchemaStatus;
  2545. }
  2546. export interface StartSchemaMergeRequest {
  2547. /**
  2548. * The ID generated by the AppSync service for the source API association.
  2549. */
  2550. associationId: String;
  2551. /**
  2552. * The identifier of the AppSync Merged API. This is generated by the AppSync service. In most cases, Merged APIs (especially in your account) only require the API ID value or ARN of the merged API. However, Merged APIs in other accounts (cross-account use cases) strictly require the full resource ARN of the merged API.
  2553. */
  2554. mergedApiIdentifier: String;
  2555. }
  2556. export interface StartSchemaMergeResponse {
  2557. /**
  2558. * The state of the source API association.
  2559. */
  2560. sourceApiAssociationStatus?: SourceApiAssociationStatus;
  2561. }
  2562. export type String = string;
  2563. export interface SyncConfig {
  2564. /**
  2565. * The Conflict Resolution strategy to perform in the event of a conflict. OPTIMISTIC_CONCURRENCY: Resolve conflicts by rejecting mutations when versions don't match the latest version at the server. AUTOMERGE: Resolve conflicts with the Automerge conflict resolution strategy. LAMBDA: Resolve conflicts with an Lambda function supplied in the LambdaConflictHandlerConfig.
  2566. */
  2567. conflictHandler?: ConflictHandlerType;
  2568. /**
  2569. * The Conflict Detection strategy to use. VERSION: Detect conflicts based on object versions for this resolver. NONE: Do not detect conflicts when invoking this resolver.
  2570. */
  2571. conflictDetection?: ConflictDetectionType;
  2572. /**
  2573. * The LambdaConflictHandlerConfig when configuring LAMBDA as the Conflict Handler.
  2574. */
  2575. lambdaConflictHandlerConfig?: LambdaConflictHandlerConfig;
  2576. }
  2577. export type TTL = number;
  2578. export type TagKey = string;
  2579. export type TagKeyList = TagKey[];
  2580. export type TagMap = {[key: string]: TagValue};
  2581. export interface TagResourceRequest {
  2582. /**
  2583. * The GraphqlApi Amazon Resource Name (ARN).
  2584. */
  2585. resourceArn: ResourceArn;
  2586. /**
  2587. * A TagMap object.
  2588. */
  2589. tags: TagMap;
  2590. }
  2591. export interface TagResourceResponse {
  2592. }
  2593. export type TagValue = string;
  2594. export type Template = string;
  2595. export interface Type {
  2596. /**
  2597. * The type name.
  2598. */
  2599. name?: ResourceName;
  2600. /**
  2601. * The type description.
  2602. */
  2603. description?: String;
  2604. /**
  2605. * The type Amazon Resource Name (ARN).
  2606. */
  2607. arn?: String;
  2608. /**
  2609. * The type definition.
  2610. */
  2611. definition?: String;
  2612. /**
  2613. * The type format: SDL or JSON.
  2614. */
  2615. format?: TypeDefinitionFormat;
  2616. }
  2617. export type TypeDefinitionFormat = "SDL"|"JSON"|string;
  2618. export type TypeList = Type[];
  2619. export interface UntagResourceRequest {
  2620. /**
  2621. * The GraphqlApi Amazon Resource Name (ARN).
  2622. */
  2623. resourceArn: ResourceArn;
  2624. /**
  2625. * A list of TagKey objects.
  2626. */
  2627. tagKeys: TagKeyList;
  2628. }
  2629. export interface UntagResourceResponse {
  2630. }
  2631. export interface UpdateApiCacheRequest {
  2632. /**
  2633. * The GraphQL API ID.
  2634. */
  2635. apiId: String;
  2636. /**
  2637. * TTL in seconds for cache entries. Valid values are 1–3,600 seconds.
  2638. */
  2639. ttl: Long;
  2640. /**
  2641. * Caching behavior. FULL_REQUEST_CACHING: All requests are fully cached. PER_RESOLVER_CACHING: Individual resolvers that you specify are cached.
  2642. */
  2643. apiCachingBehavior: ApiCachingBehavior;
  2644. /**
  2645. * The cache instance type. Valid values are SMALL MEDIUM LARGE XLARGE LARGE_2X LARGE_4X LARGE_8X (not available in all regions) LARGE_12X Historically, instance types were identified by an EC2-style value. As of July 2020, this is deprecated, and the generic identifiers above should be used. The following legacy instance types are available, but their use is discouraged: T2_SMALL: A t2.small instance type. T2_MEDIUM: A t2.medium instance type. R4_LARGE: A r4.large instance type. R4_XLARGE: A r4.xlarge instance type. R4_2XLARGE: A r4.2xlarge instance type. R4_4XLARGE: A r4.4xlarge instance type. R4_8XLARGE: A r4.8xlarge instance type.
  2646. */
  2647. type: ApiCacheType;
  2648. /**
  2649. * Controls how cache health metrics will be emitted to CloudWatch. Cache health metrics include: NetworkBandwidthOutAllowanceExceeded: The network packets dropped because the throughput exceeded the aggregated bandwidth limit. This is useful for diagnosing bottlenecks in a cache configuration. EngineCPUUtilization: The CPU utilization (percentage) allocated to the Redis process. This is useful for diagnosing bottlenecks in a cache configuration. Metrics will be recorded by API ID. You can set the value to ENABLED or DISABLED.
  2650. */
  2651. healthMetricsConfig?: CacheHealthMetricsConfig;
  2652. }
  2653. export interface UpdateApiCacheResponse {
  2654. /**
  2655. * The ApiCache object.
  2656. */
  2657. apiCache?: ApiCache;
  2658. }
  2659. export interface UpdateApiKeyRequest {
  2660. /**
  2661. * The ID for the GraphQL API.
  2662. */
  2663. apiId: String;
  2664. /**
  2665. * The API key ID.
  2666. */
  2667. id: String;
  2668. /**
  2669. * A description of the purpose of the API key.
  2670. */
  2671. description?: String;
  2672. /**
  2673. * From the update time, the time after which the API key expires. The date is represented as seconds since the epoch. For more information, see .
  2674. */
  2675. expires?: Long;
  2676. }
  2677. export interface UpdateApiKeyResponse {
  2678. /**
  2679. * The API key.
  2680. */
  2681. apiKey?: ApiKey;
  2682. }
  2683. export interface UpdateDataSourceRequest {
  2684. /**
  2685. * The API ID.
  2686. */
  2687. apiId: String;
  2688. /**
  2689. * The new name for the data source.
  2690. */
  2691. name: ResourceName;
  2692. /**
  2693. * The new description for the data source.
  2694. */
  2695. description?: String;
  2696. /**
  2697. * The new data source type.
  2698. */
  2699. type: DataSourceType;
  2700. /**
  2701. * The new service role Amazon Resource Name (ARN) for the data source.
  2702. */
  2703. serviceRoleArn?: String;
  2704. /**
  2705. * The new Amazon DynamoDB configuration.
  2706. */
  2707. dynamodbConfig?: DynamodbDataSourceConfig;
  2708. /**
  2709. * The new Lambda configuration.
  2710. */
  2711. lambdaConfig?: LambdaDataSourceConfig;
  2712. /**
  2713. * The new OpenSearch configuration. As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This configuration is deprecated. Instead, use UpdateDataSourceRequest$openSearchServiceConfig to update an OpenSearch data source.
  2714. */
  2715. elasticsearchConfig?: ElasticsearchDataSourceConfig;
  2716. /**
  2717. * The new OpenSearch configuration.
  2718. */
  2719. openSearchServiceConfig?: OpenSearchServiceDataSourceConfig;
  2720. /**
  2721. * The new HTTP endpoint configuration.
  2722. */
  2723. httpConfig?: HttpDataSourceConfig;
  2724. /**
  2725. * The new relational database configuration.
  2726. */
  2727. relationalDatabaseConfig?: RelationalDatabaseDataSourceConfig;
  2728. /**
  2729. * The new Amazon EventBridge settings.
  2730. */
  2731. eventBridgeConfig?: EventBridgeDataSourceConfig;
  2732. /**
  2733. * Enables or disables enhanced data source metrics for specified data sources. Note that metricsConfig won't be used unless the dataSourceLevelMetricsBehavior value is set to PER_DATA_SOURCE_METRICS. If the dataSourceLevelMetricsBehavior is set to FULL_REQUEST_DATA_SOURCE_METRICS instead, metricsConfig will be ignored. However, you can still set its value. metricsConfig can be ENABLED or DISABLED.
  2734. */
  2735. metricsConfig?: DataSourceLevelMetricsConfig;
  2736. }
  2737. export interface UpdateDataSourceResponse {
  2738. /**
  2739. * The updated DataSource object.
  2740. */
  2741. dataSource?: DataSource;
  2742. }
  2743. export interface UpdateDomainNameRequest {
  2744. /**
  2745. * The domain name.
  2746. */
  2747. domainName: DomainName;
  2748. /**
  2749. * A description of the DomainName.
  2750. */
  2751. description?: Description;
  2752. }
  2753. export interface UpdateDomainNameResponse {
  2754. /**
  2755. * The configuration for the DomainName.
  2756. */
  2757. domainNameConfig?: DomainNameConfig;
  2758. }
  2759. export interface UpdateFunctionRequest {
  2760. /**
  2761. * The GraphQL API ID.
  2762. */
  2763. apiId: String;
  2764. /**
  2765. * The Function name.
  2766. */
  2767. name: ResourceName;
  2768. /**
  2769. * The Function description.
  2770. */
  2771. description?: String;
  2772. /**
  2773. * The function ID.
  2774. */
  2775. functionId: ResourceName;
  2776. /**
  2777. * The Function DataSource name.
  2778. */
  2779. dataSourceName: ResourceName;
  2780. /**
  2781. * The Function request mapping template. Functions support only the 2018-05-29 version of the request mapping template.
  2782. */
  2783. requestMappingTemplate?: MappingTemplate;
  2784. /**
  2785. * The Function request mapping template.
  2786. */
  2787. responseMappingTemplate?: MappingTemplate;
  2788. /**
  2789. * The version of the request mapping template. Currently, the supported value is 2018-05-29. Note that when using VTL and mapping templates, the functionVersion is required.
  2790. */
  2791. functionVersion?: String;
  2792. syncConfig?: SyncConfig;
  2793. /**
  2794. * The maximum batching size for a resolver.
  2795. */
  2796. maxBatchSize?: MaxBatchSize;
  2797. runtime?: AppSyncRuntime;
  2798. /**
  2799. * The function code that contains the request and response functions. When code is used, the runtime is required. The runtime value must be APPSYNC_JS.
  2800. */
  2801. code?: Code;
  2802. }
  2803. export interface UpdateFunctionResponse {
  2804. /**
  2805. * The Function object.
  2806. */
  2807. functionConfiguration?: FunctionConfiguration;
  2808. }
  2809. export interface UpdateGraphqlApiRequest {
  2810. /**
  2811. * The API ID.
  2812. */
  2813. apiId: String;
  2814. /**
  2815. * The new name for the GraphqlApi object.
  2816. */
  2817. name: String;
  2818. /**
  2819. * The Amazon CloudWatch Logs configuration for the GraphqlApi object.
  2820. */
  2821. logConfig?: LogConfig;
  2822. /**
  2823. * The new authentication type for the GraphqlApi object.
  2824. */
  2825. authenticationType: AuthenticationType;
  2826. /**
  2827. * The new Amazon Cognito user pool configuration for the ~GraphqlApi object.
  2828. */
  2829. userPoolConfig?: UserPoolConfig;
  2830. /**
  2831. * The OpenID Connect configuration for the GraphqlApi object.
  2832. */
  2833. openIDConnectConfig?: OpenIDConnectConfig;
  2834. /**
  2835. * A list of additional authentication providers for the GraphqlApi API.
  2836. */
  2837. additionalAuthenticationProviders?: AdditionalAuthenticationProviders;
  2838. /**
  2839. * A flag indicating whether to use X-Ray tracing for the GraphqlApi.
  2840. */
  2841. xrayEnabled?: Boolean;
  2842. /**
  2843. * Configuration for Lambda function authorization.
  2844. */
  2845. lambdaAuthorizerConfig?: LambdaAuthorizerConfig;
  2846. /**
  2847. * The Identity and Access Management service role ARN for a merged API. The AppSync service assumes this role on behalf of the Merged API to validate access to source APIs at runtime and to prompt the AUTO_MERGE to update the merged API endpoint with the source API changes automatically.
  2848. */
  2849. mergedApiExecutionRoleArn?: String;
  2850. /**
  2851. * The owner contact information for an API resource. This field accepts any string input with a length of 0 - 256 characters.
  2852. */
  2853. ownerContact?: String;
  2854. /**
  2855. * Sets the value of the GraphQL API to enable (ENABLED) or disable (DISABLED) introspection. If no value is provided, the introspection configuration will be set to ENABLED by default. This field will produce an error if the operation attempts to use the introspection feature while this field is disabled. For more information about introspection, see GraphQL introspection.
  2856. */
  2857. introspectionConfig?: GraphQLApiIntrospectionConfig;
  2858. /**
  2859. * The maximum depth a query can have in a single request. Depth refers to the amount of nested levels allowed in the body of query. The default value is 0 (or unspecified), which indicates there's no depth limit. If you set a limit, it can be between 1 and 75 nested levels. This field will produce a limit error if the operation falls out of bounds. Note that fields can still be set to nullable or non-nullable. If a non-nullable field produces an error, the error will be thrown upwards to the first nullable field available.
  2860. */
  2861. queryDepthLimit?: QueryDepthLimit;
  2862. /**
  2863. * The maximum number of resolvers that can be invoked in a single request. The default value is 0 (or unspecified), which will set the limit to 10000. When specified, the limit value can be between 1 and 10000. This field will produce a limit error if the operation falls out of bounds.
  2864. */
  2865. resolverCountLimit?: ResolverCountLimit;
  2866. /**
  2867. * The enhancedMetricsConfig object.
  2868. */
  2869. enhancedMetricsConfig?: EnhancedMetricsConfig;
  2870. }
  2871. export interface UpdateGraphqlApiResponse {
  2872. /**
  2873. * The updated GraphqlApi object.
  2874. */
  2875. graphqlApi?: GraphqlApi;
  2876. }
  2877. export interface UpdateResolverRequest {
  2878. /**
  2879. * The API ID.
  2880. */
  2881. apiId: String;
  2882. /**
  2883. * The new type name.
  2884. */
  2885. typeName: ResourceName;
  2886. /**
  2887. * The new field name.
  2888. */
  2889. fieldName: ResourceName;
  2890. /**
  2891. * The new data source name.
  2892. */
  2893. dataSourceName?: ResourceName;
  2894. /**
  2895. * The new request mapping template. 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). VTL request mapping templates are optional when using an Lambda data source. For all other data sources, VTL request and response mapping templates are required.
  2896. */
  2897. requestMappingTemplate?: MappingTemplate;
  2898. /**
  2899. * The new response mapping template.
  2900. */
  2901. responseMappingTemplate?: MappingTemplate;
  2902. /**
  2903. * The resolver type. UNIT: A UNIT resolver type. A UNIT resolver is the default resolver type. You can use a UNIT resolver to run a GraphQL query against a single data source. PIPELINE: A PIPELINE resolver type. You can use a PIPELINE resolver to invoke a series of Function objects in a serial manner. You can use a pipeline resolver to run a GraphQL query against multiple data sources.
  2904. */
  2905. kind?: ResolverKind;
  2906. /**
  2907. * The PipelineConfig.
  2908. */
  2909. pipelineConfig?: PipelineConfig;
  2910. /**
  2911. * The SyncConfig for a resolver attached to a versioned data source.
  2912. */
  2913. syncConfig?: SyncConfig;
  2914. /**
  2915. * The caching configuration for the resolver.
  2916. */
  2917. cachingConfig?: CachingConfig;
  2918. /**
  2919. * The maximum batching size for a resolver.
  2920. */
  2921. maxBatchSize?: MaxBatchSize;
  2922. runtime?: AppSyncRuntime;
  2923. /**
  2924. * The resolver code that contains the request and response functions. When code is used, the runtime is required. The runtime value must be APPSYNC_JS.
  2925. */
  2926. code?: Code;
  2927. /**
  2928. * Enables or disables enhanced resolver metrics for specified resolvers. Note that metricsConfig won't be used unless the resolverLevelMetricsBehavior value is set to PER_RESOLVER_METRICS. If the resolverLevelMetricsBehavior is set to FULL_REQUEST_RESOLVER_METRICS instead, metricsConfig will be ignored. However, you can still set its value. metricsConfig can be ENABLED or DISABLED.
  2929. */
  2930. metricsConfig?: ResolverLevelMetricsConfig;
  2931. }
  2932. export interface UpdateResolverResponse {
  2933. /**
  2934. * The updated Resolver object.
  2935. */
  2936. resolver?: Resolver;
  2937. }
  2938. export interface UpdateSourceApiAssociationRequest {
  2939. /**
  2940. * The ID generated by the AppSync service for the source API association.
  2941. */
  2942. associationId: String;
  2943. /**
  2944. * The identifier of the AppSync Merged API. This is generated by the AppSync service. In most cases, Merged APIs (especially in your account) only require the API ID value or ARN of the merged API. However, Merged APIs in other accounts (cross-account use cases) strictly require the full resource ARN of the merged API.
  2945. */
  2946. mergedApiIdentifier: String;
  2947. /**
  2948. * The description field.
  2949. */
  2950. description?: String;
  2951. /**
  2952. * The SourceApiAssociationConfig object data.
  2953. */
  2954. sourceApiAssociationConfig?: SourceApiAssociationConfig;
  2955. }
  2956. export interface UpdateSourceApiAssociationResponse {
  2957. /**
  2958. * The SourceApiAssociation object data.
  2959. */
  2960. sourceApiAssociation?: SourceApiAssociation;
  2961. }
  2962. export interface UpdateTypeRequest {
  2963. /**
  2964. * The API ID.
  2965. */
  2966. apiId: String;
  2967. /**
  2968. * The new type name.
  2969. */
  2970. typeName: ResourceName;
  2971. /**
  2972. * The new definition.
  2973. */
  2974. definition?: String;
  2975. /**
  2976. * The new type format: SDL or JSON.
  2977. */
  2978. format: TypeDefinitionFormat;
  2979. }
  2980. export interface UpdateTypeResponse {
  2981. /**
  2982. * The updated Type object.
  2983. */
  2984. type?: Type;
  2985. }
  2986. export interface UserPoolConfig {
  2987. /**
  2988. * The user pool ID.
  2989. */
  2990. userPoolId: String;
  2991. /**
  2992. * The Amazon Web Services Region in which the user pool was created.
  2993. */
  2994. awsRegion: String;
  2995. /**
  2996. * 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.
  2997. */
  2998. defaultAction: DefaultAction;
  2999. /**
  3000. * A regular expression for validating the incoming Amazon Cognito user pool app client ID. If this value isn't set, no filtering is applied.
  3001. */
  3002. appIdClientRegex?: String;
  3003. }
  3004. /**
  3005. * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
  3006. */
  3007. export type apiVersion = "2017-07-25"|"latest"|string;
  3008. export interface ClientApiVersions {
  3009. /**
  3010. * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
  3011. */
  3012. apiVersion?: apiVersion;
  3013. }
  3014. export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
  3015. /**
  3016. * Contains interfaces for use with the AppSync client.
  3017. */
  3018. export import Types = AppSync;
  3019. }
  3020. export = AppSync;