I have a lambda function and that lambda is using the layers. I am creating a boto3 to update the lambda function to use the latest layer. I can see only this(see code below) in the AWS boto3 document (https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/lambda.html#Lambda.Client.update_function_code) .
response = client.update_function_code(
FunctionName='string',
ZipFile=b'bytes',
S3Bucket='string',
S3Key='string',
S3ObjectVersion='string',
Publish=True|False,
DryRun=True|False,
RevisionId='string'
)
I cannot see the layer field there to point the new version/update.
TIA.