put_function_code_signing_config
async
¶
put_function_code_signing_config(
code_signing_config_arn: CodeSigningConfigArn,
function_name: NamespacedFunctionName,
*,
config_overrides: Optional[AsyncLambdaClientConfig] = None,
) -> PutFunctionCodeSigningConfigResponse
Update the code signing configuration for the function. Changes to the code signing configuration take effect the next time a user tries to deploy a code package to the function.
Parameters:
-
code_signing_config_arn(CodeSigningConfigArn) –The The Amazon Resource Name (ARN) of the code signing configuration.
-
function_name(NamespacedFunctionName) –The name or ARN of the Lambda function.
Name formats
-
Function name -
MyFunction. -
Function ARN -
arn:aws:lambda:us-west-2:123456789012:function:MyFunction. -
Partial ARN -
123456789012:function:MyFunction.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
-
Raises:
-
CodeSigningConfigNotFoundException–The specified code signing configuration does not exist.
-
InvalidParameterValueException–One of the parameters in the request is not valid.
-
ResourceConflictException–The resource already exists, or another operation is in progress.
-
ResourceNotFoundException–The resource specified in the request does not exist.
-
ServiceException–The Lambda service encountered an internal error.
-
TooManyRequestsException–The request throughput limit was exceeded. For more information, see Lambda quotas.
-
UnknownServiceError–The service returned an error code this client does not model.