:doc:`Lambda <../../lambda>` / Client / put_function_code_signing_config

********************************
put_function_code_signing_config
********************************



.. py:method:: Lambda.Client.put_function_code_signing_config(**kwargs)

  

  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.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutFunctionCodeSigningConfig>`_  


  **Request Syntax**
  ::

    response = client.put_function_code_signing_config(
        CodeSigningConfigArn='string',
        FunctionName='string'
    )
    
  :type CodeSigningConfigArn: string
  :param CodeSigningConfigArn: **[REQUIRED]** 

    The The Amazon Resource Name (ARN) of the code signing configuration.

    

  
  :type FunctionName: string
  :param FunctionName: **[REQUIRED]** 

    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.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'CodeSigningConfigArn': 'string',
          'FunctionName': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **CodeSigningConfigArn** *(string) --* 

        The The Amazon Resource Name (ARN) of the code signing configuration.

        
      

      - **FunctionName** *(string) --* 

        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.

        
  
  **Exceptions**
  
  *   :py:class:`Lambda.Client.exceptions.InvalidParameterValueException`

  
  *   :py:class:`Lambda.Client.exceptions.ResourceConflictException`

  
  *   :py:class:`Lambda.Client.exceptions.ServiceException`

  
  *   :py:class:`Lambda.Client.exceptions.TooManyRequestsException`

  
  *   :py:class:`Lambda.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`Lambda.Client.exceptions.CodeSigningConfigNotFoundException`

  