update_function
async
¶
update_function(
api_id: String,
name: ResourceName,
function_id: ResourceName,
data_source_name: ResourceName,
*,
config_overrides: Optional[AsyncAppSyncClientConfig] = None,
description: Optional[String] = None,
request_mapping_template: Optional[MappingTemplate] = None,
response_mapping_template: Optional[MappingTemplate] = None,
function_version: Optional[String] = None,
sync_config: Optional[SyncConfig] = None,
max_batch_size: Optional[MaxBatchSize] = None,
runtime: Optional[AppSyncRuntime] = None,
code: Optional[Code] = None,
) -> UpdateFunctionResponse
Updates a Function object.
Parameters:
-
api_id(String) –The GraphQL API ID.
-
name(ResourceName) –The
Functionname. -
description(Optional[String], default:None) –The
Functiondescription. -
function_id(ResourceName) –The function ID.
-
data_source_name(ResourceName) –The
FunctionDataSourcename. -
request_mapping_template(Optional[MappingTemplate], default:None) –The
Functionrequest mapping template. Functions support only the 2018-05-29 version of the request mapping template. -
response_mapping_template(Optional[MappingTemplate], default:None) –The
Functionrequest mapping template. -
function_version(Optional[String], default:None) –The
versionof the request mapping template. Currently, the supported value is 2018-05-29. Note that when using VTL and mapping templates, thefunctionVersionis required. -
max_batch_size(Optional[MaxBatchSize], default:None) –The maximum batching size for a resolver.
-
code(Optional[Code], default:None) –The
functioncode that contains the request and response functions. When code is used, theruntimeis required. Theruntimevalue must beAPPSYNC_JS.
Raises:
-
BadRequestException–The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.
-
ConcurrentModificationException–Another modification is in progress at this time and it must complete before you can make your change.
-
InternalFailureException–An internal AppSync error occurred. Try your request again.
-
NotFoundException–The resource specified in the request was not found. Check the resource, and then try again.
-
UnauthorizedException–You aren't authorized to perform this operation.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_appsync/_services/async_app_sync.py
4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 | |