put_function_code_signing_config

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

Request Syntax

response = client.put_function_code_signing_config(
    CodeSigningConfigArn='string',
    FunctionName='string'
)
Parameters
  • CodeSigningConfigArn (string) --

    [REQUIRED]

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

  • FunctionName (string) --

    [REQUIRED]

    The name 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.

Return type

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 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

  • Lambda.Client.exceptions.ServiceException
  • Lambda.Client.exceptions.InvalidParameterValueException
  • Lambda.Client.exceptions.ResourceNotFoundException
  • Lambda.Client.exceptions.TooManyRequestsException
  • Lambda.Client.exceptions.ResourceConflictException
  • Lambda.Client.exceptions.CodeSigningConfigNotFoundException