Defining non-code Configs in serverless.yml with custom container image

I am doing some prototyping with using my own container images to deploy lambda functions, as described here:

I understand that I should package my lambda function code with the docker file for deployment, but what about other config settings including:

region,
stage,
stackName,
timeout,
memorySize,
deploymentBucket,
role,
maximumRetryAttempts,
vpc ({ securityGroupIds, subnetIds }),
environment,
layers,
events

Is there a reference anywhere as to which of these need to move to the container, and which can stay in the serverless yml file for deployment using Cloud Formation?