Skip to main content

function_code_signing_configs

Creates, updates, deletes, gets or lists a function_code_signing_configs resource.

Overview

Namefunction_code_signing_configs
TypeResource
Idaws.lambda.function_code_signing_configs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
code_signing_config_arnstringThe The Amazon Resource Name (ARN) of the code signing configuration. (pattern: <code>arn:(aws[a-zA-Z-]*)?:lambda:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\d{1}:\d{12}:code-signing-config:csc-[a-z0-9]{17}</code>)
function_namestringThe 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. (pattern: <code>(arn:(aws[a-zA-Z-]*)?:lambda:)?((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-]+)(:($LATEST|[a-zA-Z0-9-]+))?</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_function_code_signing_configselectfunction_name, regionReturns the code signing configuration for the specified function.
put_function_code_signing_configreplacefunction_name, region, CodeSigningConfigArnUpdate 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.
delete_function_code_signing_configdeletefunction_name, regionRemoves the code signing configuration from the function.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
function_namestringThe 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.
regionstringAWS region (default: us-east-1)

SELECT examples

Returns the code signing configuration for the specified function.

SELECT
code_signing_config_arn,
function_name
FROM aws.lambda.function_code_signing_configs
WHERE function_name = '{{ function_name }}' -- required
AND region = '{{ region }}' -- required
;

REPLACE examples

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.

REPLACE aws.lambda.function_code_signing_configs
SET
CodeSigningConfigArn = '{{ CodeSigningConfigArn }}'
WHERE
function_name = '{{ function_name }}' --required
AND region = '{{ region }}' --required
AND CodeSigningConfigArn = '{{ CodeSigningConfigArn }}' --required
RETURNING
code_signing_config_arn,
function_name;

DELETE examples

Removes the code signing configuration from the function.

DELETE FROM aws.lambda.function_code_signing_configs
WHERE function_name = '{{ function_name }}' --required
AND region = '{{ region }}' --required
;