【发布时间】:2021-11-15 23:38:29
【问题描述】:
我正在使用 python 在 aws cdk 中创建多个 IPSet,我想知道是否有更好的方法在 python 中编写它。
我是这样写的:
ip_set01 = wafv2.CfnIPSet(
scope_=self,
id='WAFTESTIPSET01',
scope='REGIONAL',
description='Block test01',
addresses= [],
ip_address_version="IPV4",
)
ip_set02 = wafv2.CfnIPSet(
scope_=self,
id='WAFTESTIPSET02',
scope='REGIONAL',
description='Block test02',
addresses= [],
ip_address_version="IPV6",
)
ip_set03 = wafv2.CfnIPSet(
scope_=self,
id='WAFTESTIPSET03',
scope='REGIONAL',
description='Block test03',
addresses= [],
ip_address_version="IPV4",
)
【问题讨论】:
标签: python amazon-web-services aws-cdk amazon-waf