version
Gets an individual version
resource
Overview
Name | version |
Type | Resource |
Description | version |
Id | awscc.lambda.version |
Fields
Name | Datatype | Description |
---|---|---|
function_arn | string | The ARN of the version. |
version | string | The version number. |
code_sha256 | string | Only publish a version if the hash value matches the value that's specified. Use this option to avoid publishing a version if the function code has changed since you last updated it. Updates are not supported for this property. |
description | string | A description for the version to override the description in the function configuration. Updates are not supported for this property. |
function_name | string | The name of the Lambda function. |
provisioned_concurrency_config | object | Specifies a provisioned concurrency configuration for a function's version. Updates are not supported for this property. |
runtime_policy | object | Specifies the runtime management configuration of a function. Displays runtimeVersionArn only for Manual. |
region | string | AWS region. |
Methods
Currently only SELECT
is supported for this resource resource.
Example
SELECT
region,
function_arn,
version,
code_sha256,
description,
function_name,
provisioned_concurrency_config,
runtime_policy
FROM awscc.lambda.version
WHERE data__Identifier = '<FunctionArn>';
Permissions
To operate on the version
resource, the following permissions are required:
Read
lambda:GetFunctionConfiguration,
lambda:GetProvisionedConcurrencyConfig,
lambda:GetRuntimeManagementConfig
Delete
lambda:GetFunctionConfiguration,
lambda:DeleteFunction