AppSync / Client / list_functions
list_functions#
- AppSync.Client.list_functions(**kwargs)#
- List multiple functions. - See also: AWS API Documentation - Request Syntax - response = client.list_functions( apiId='string', nextToken='string', maxResults=123 ) - Parameters:
- apiId (string) – - [REQUIRED] - The GraphQL API ID. 
- nextToken (string) – 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. 
- maxResults (integer) – The maximum number of results that you want the request to return. 
 
- Return type:
- dict 
- Returns:
- Response Syntax - { 'functions': [ { 'functionId': 'string', 'functionArn': 'string', 'name': 'string', 'description': 'string', 'dataSourceName': 'string', 'requestMappingTemplate': 'string', 'responseMappingTemplate': 'string', 'functionVersion': 'string', 'syncConfig': { 'conflictHandler': 'OPTIMISTIC_CONCURRENCY'|'LAMBDA'|'AUTOMERGE'|'NONE', 'conflictDetection': 'VERSION'|'NONE', 'lambdaConflictHandlerConfig': { 'lambdaConflictHandlerArn': 'string' } }, 'maxBatchSize': 123, 'runtime': { 'name': 'APPSYNC_JS', 'runtimeVersion': 'string' }, 'code': 'string' }, ], 'nextToken': 'string' } - Response Structure - (dict) – - functions (list) – - A list of - Functionobjects.- (dict) – - A function is a reusable entity. You can use multiple functions to compose the resolver logic. - functionId (string) – - A unique ID representing the - Functionobject.
- functionArn (string) – - The Amazon Resource Name (ARN) of the - Functionobject.
- name (string) – - The name of the - Functionobject.
- description (string) – - The - Functiondescription.
- dataSourceName (string) – - The name of the - DataSource.
- requestMappingTemplate (string) – - The - Functionrequest mapping template. Functions support only the 2018-05-29 version of the request mapping template.
- responseMappingTemplate (string) – - The - Functionresponse mapping template.
- functionVersion (string) – - The version of the request mapping template. Currently, only the 2018-05-29 version of the template is supported. 
- syncConfig (dict) – - Describes a Sync configuration for a resolver. - Specifies which Conflict Detection strategy and Resolution strategy to use when the resolver is invoked. - conflictHandler (string) – - 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.
 
- conflictDetection (string) – - 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. 
 
- lambdaConflictHandlerConfig (dict) – - The - LambdaConflictHandlerConfigwhen configuring- LAMBDAas the Conflict Handler.- lambdaConflictHandlerArn (string) – - The Amazon Resource Name (ARN) for the Lambda function to use as the Conflict Handler. 
 
 
- maxBatchSize (integer) – - The maximum batching size for a resolver. 
- runtime (dict) – - Describes a runtime used by an Amazon Web Services AppSync pipeline resolver or Amazon Web Services AppSync function. Specifies the name and version of the runtime to use. Note that if a runtime is specified, code must also be specified. - name (string) – - The - nameof the runtime to use. Currently, the only allowed value is- APPSYNC_JS.
- runtimeVersion (string) – - The - versionof the runtime to use. Currently, the only allowed version is- 1.0.0.
 
- code (string) – - The - functioncode that contains the request and response functions. When code is used, the- runtimeis required. The- runtimevalue must be- APPSYNC_JS.
 
 
- nextToken (string) – - 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. 
 
 
 - Exceptions - AppSync.Client.exceptions.BadRequestException
- AppSync.Client.exceptions.NotFoundException
- AppSync.Client.exceptions.UnauthorizedException
- AppSync.Client.exceptions.InternalFailureException