title: How to pass ThroughputMode for EFS in Cloudformation?
body: <p>Throughput mode can be provisioned or bursting. In case of provisioned, another property: &quot;ProvisionedThroughPutInMibps&quot; will need to be set.</p>
  <p>Now if all these were to be passed as parameters to the template for the users to choose,
  How to handle the validations for ThroughputMode?
  i.e., User selects &quot;bursting&quot;, now the parameter: &quot;ProvisionedThroughPutInMibps&quot; is of no use.(The AWS::NoValue can be used), but it's not allowed to go ahead without setting a value for &quot;ProvisionedThroughPutInMibps&quot;  (even if it's of no use)</p>
  <p>Can &quot;Rules&quot; be of any use here?</p>
  <pre><code>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
  </code></pre>