update_function
¶
update_function(
api_id: String,
name: ResourceName,
function_id: ResourceName,
data_source_name: ResourceName,
*,
config_overrides: Optional[AppSyncClientConfig] = 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/app_sync.py
4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 | |