def __update__(self):
"""
Update function code and properties
:return:
"""
self.__details__()
self.__zip_function__()
response = self.client.update_function_code(
FunctionName=self.function_name,
ZipFile=self.__read_zip__()
)
if self.debug:
PrintMsg.out(response)
PrintMsg.cmd('Sha256: {}'.format(
response['CodeSha256']), 'UPDATED CODE')
self.__delete_zip__()
if not self.dry:
response = self.client.update_function_configuration(
**self.config)
if self.debug:
PrintMsg.out(response)
PrintMsg.cmd('Sha256: {}'.format(
response['CodeSha256']), 'UPDATED CONFIG')
评论列表
文章目录