CmdID / aws / aws lambda
aws lambda publish-version
Creates a version from the current code and configuration of a Lambda Event Function. AWS CLI reference
5 options Its page in the AWS CLI reference
Options
--code-sha256Only publish a version if the hash value matches the value that's specified.--descriptionA description for the version to override the description in the function configuration.--function-nameThe name or ARN of the Lambda function.--publish-toSpecifies where to publish the function version or configuration.--revision-idOnly update the function if the revision ID matches the ID that's specified.