Image if the deployment package is a container image. For a container image, the code property must include the URI of a container image in the Amazon ECR registry. You do not need to specify the handler and runtime properties. Zip if the deployment package is a .zip file archive. For a .zip file archive, the code property specifies the location of the .zip file. You must also specify the handler and runtime properties.State, StateReason, and StateReasonCode fields in the response from GetFunctionConfiguration indicate when the function is ready to invoke. For more information, see Function States.Publish parameter to create version 1 of your function from its initial configuration.curl --location -g --request POST 'http://lambda.{region}.amazonaws.com/2015-03-31/functions' \
--header 'Content-Type: application/json' \
--data-raw ''