是否可以使 aws cloudformation 代码比这更短?

Is it possible to make the aws cloudformation code shorter than this?

我正在编写 aws cloudformation 代码。能不能比我写的代码更简洁一些?

PublicSubnet:
  Type: AWS::EC2::Subnet
  Properties:
    VPCId: !Ref VPC
    CibrBlock: !Sub
    - ${CibrBlockHeader}
    - { CibrBlockHeader: If [ IsProd, !FindInMap [ VPC, CibrBlockHeader, CibrBlockFooter ], !FindInMap [ VPC, DevCibrBlockHeader, CibrBlockFooter ] ] }

我认为以下应该可行(不需要 Sub):

PublicSubnet:
  Type: AWS::EC2::Subnet
  Properties:
    VPCId: !Ref VPC
    CibrBlock: 
      CibrBlockHeader: If [ IsProd, !FindInMap [ VPC, CibrBlockHeader, CibrBlockFooter ], !FindInMap [ VPC, DevCibrBlockHeader, CibrBlockFooter ] ]