function_code_signing_configs
Creates, updates, deletes, gets or lists a function_code_signing_configs resource.
Overview
| Name | function_code_signing_configs |
| Type | Resource |
| Id | aws.lambda.function_code_signing_configs |
Fields
The following fields are returned by SELECT queries:
- get_function_code_signing_config
| Name | Datatype | Description |
|---|---|---|
code_signing_config_arn | string | The 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_name | 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. (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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_function_code_signing_config | select | function_name, region | Returns the code signing configuration for the specified function. | |
put_function_code_signing_config | replace | function_name, region, CodeSigningConfigArn | 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. | |
delete_function_code_signing_config | delete | function_name, region | Removes 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.
| Name | Datatype | Description |
|---|---|---|
function_name | 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. |
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_function_code_signing_config
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
- put_function_code_signing_config
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
- delete_function_code_signing_config
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
;