问题描述
可以设置吞吐量模式或突发模式。如果已设置,则需要设置另一个属性:“ ProvisionedThroughPutInMibps”。
现在,如果将所有这些作为参数传递给模板供用户选择, 如何处理ThroughputMode的验证? 即,用户选择“突发”,现在参数:“ ProvisionedThroughPutInMibps”没有用。(可以使用AWS :: NoValue),但是如果不设置“ ProvisionedThroughPutInMibps”的值,则不允许继续操作(即使它是没用)
“规则”在这里有用吗?
AWSTemplateFormatVersion: 2010-09-09
Parameters:
ThroughputMode:
Type: string
AllowedValues:
- bursting
- provisioned
ProvisionedThroughPutInMibps:
Type: Number
Resources:
FileSystemResource:
Type: 'AWS::EFS::FileSystem'
Properties:
ThroughputMode: !Ref ThroughputMode
ProvisionedThroughPutInMibps: !Ref ProvisionedThroughPutInMibps
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)