【发布时间】:2020-06-14 04:39:14
【问题描述】:
我有一个 lambda 函数,那个 lambda 正在使用层。我正在创建一个 boto3 来更新 lambda 函数以使用最新层。我只能在 AWS boto3 文档 (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'
)
我看不到指向新版本/更新的图层字段。
TIA。
【问题讨论】:
-
添加了答案@Arun