0

吞吐量模式可以预置或突发。如果已配置,则需要设置另一个属性:“ProvisionedThroughPutInMibps”。

现在如果所有这些都作为参数传递给模板供用户选择,如何处理ThroughputMode的验证?即,用户选择“bursting”,现在参数:“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
4

0 回答 0