create_connection_function
async
¶
create_connection_function(
name: FunctionName,
connection_function_config: FunctionConfig,
connection_function_code: FunctionBlob,
*,
config_overrides: Optional[AsyncCloudFrontClientConfig] = None,
tags: Optional[Tags] = None,
) -> CreateConnectionFunctionResult
Creates a connection function.
Parameters:
-
name(FunctionName) –A name for the connection function.
-
connection_function_code(FunctionBlob) –The code for the connection function.
Raises:
-
AccessDenied–Access denied.
-
EntityAlreadyExists–The entity already exists. You must provide a unique entity.
-
EntityLimitExceeded–The entity limit has been exceeded.
-
EntitySizeLimitExceeded–The entity size limit was exceeded.
-
InvalidArgument–An argument is invalid.
-
InvalidTagging–The tagging specified is not valid.
-
UnsupportedOperation–This operation is not supported in this Amazon Web Services Region.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_cloudfront/_services/async_cloud_front.py
995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 | |