Skip to content

Lambda  >  Operations  >  put_function_code_signing_config

put_function_code_signing_config

Operation

put_function_code_signing_config async

put_function_code_signing_config(input: PutFunctionCodeSigningConfigInput, plugins: list[Plugin] | None = None) -> PutFunctionCodeSigningConfigOutput

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:

Name Type Description Default
input PutFunctionCodeSigningConfigInput

An instance of PutFunctionCodeSigningConfigInput.

required
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
PutFunctionCodeSigningConfigOutput

An instance of PutFunctionCodeSigningConfigOutput.

Input

PutFunctionCodeSigningConfigInput dataclass

Dataclass for PutFunctionCodeSigningConfigInput structure.

Attributes

code_signing_config_arn class-attribute instance-attribute
code_signing_config_arn: str | None = None

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

function_name class-attribute instance-attribute
function_name: str | None = None

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.

Output

PutFunctionCodeSigningConfigOutput dataclass

Dataclass for PutFunctionCodeSigningConfigOutput structure.

Attributes

code_signing_config_arn instance-attribute
code_signing_config_arn: str

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

function_name instance-attribute
function_name: str

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.