aws::lambda-version

Creates a version of a Lambda Function.

Example

aws::lambda-version lambda-version-example
    function: $(aws::lambda-function lambda-function-example)
    description: "Version 1 of lambda-function-example"

    permission
        statement-id: "AllowGetFunctionFromCloudFront"
        action: "lambda:GetFunction"
        principal: "edgelambda.amazonaws.com"
    end

    event-invoke-config
        maximum-retry-attempts: 1
        maximum-event-age-in-seconds: 600
    end
end

Attributes

Attribute Description
function The Lambda Function to create a version for. (Required)
description The description for the version.
permission set subresource

The set of permissions to be associated with the Lambda Function version.

statement-id
A unique statement identifier. Valid values satisfy the regex: [[a-zA-Z0-9-_]+]. (Required)
action
The action that the principal can perform.
principal
The principal who is getting this permission.
source-arn
The ARN of the source that is invoking the function.
source-account
The AWS account ID of the source that is invoking the function.
event-source-token
The token that must be present in the request.
revision-id
The revision ID of the function.
principal-org-id
The organization ID of the principal.
function-url-auth-type
The type of authentication to use. Valid values are NONE or AWS_IAM.
event-invoke-config subresource

The event invoke configuration for the function version.

maximum-retry-attempts
The maximum number of times to retry when the function returns an error.
maximum-event-age-in-seconds
The maximum age of a request that Lambda sends to a function for processing.
destination-config subresource
The destination configuration for the function version.

Outputs

Attribute Description
version The published version.
arn The ARN of the published version.