是否可以使用 Lambda 函数自动删除网络 ACL 中的入站规则? 我搜索了许多博客和文档,但没有一个是合法的。我也尝试过 chatgpt 但没有成功。
源代码(如果适用)。
希望您的回复,提前致谢 祝你有美好的一天!!
是的,可以在您的函数中使用相当于 delete-network-acl-entry CLI 操作。例如,在 Python 中,您可以使用:
response = client.delete_network_acl_entry(
DryRun=True|False,
Egress=True|False,
NetworkAclId='string',
RuleNumber=123
)